c# - 使用 ASP.Net C# 在数字签名 acrofield 中添加包含数字签名 PDF 的数据库中的图像
问题描述
我有一个签名板。我将签名垫值保存为数据库中的字节数组图像。我已在图像控件上显示此图像。我想在 PDF 中的数字签名控件上显示相同的图像。为了在 pdf 上显示内容,我在项目中使用了类文件。
下面我附上了代码来显示它:
public String Signature
{
get
{
//if employee has not agreed to the Electronic Signature form - do not place signature on form.
EmployeePortal.Models.NCI.NCIEntities ent = EmployeePortal.Models.ClsNCIUtil.GetNCIEntity(custid);
using (ent)
{
EmployeePortal.Models.NCI.EmployeeSignature empSignature = ent.EmployeeSignatures.OrderByDescending(a => a.SignID).FirstOrDefault(a => a.EmployeeId == employee.EmployeeId);
EmployeePortal.Models.NCI.EmployeeOnboarding empsign = ent.EmployeeOnboardings.FirstOrDefault(a => a.EmployeeId == employee.EmployeeId);
if (empsign == null)
{
return null;
}
if (empsign.IAgree == true)
{
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
return encoding.GetString(empSignature.SignatureFile);
}
else
{
return null;
}
}
}
}
如何在数字签名 acrofield 上显示图像?
解决方案
推荐阅读
- process - 在 fork() 过程中,child 显然获得了一个新的内核堆栈,但是 fork() 手册页没有提到这一点?
- javascript - 使用 window.onload 创建加载屏幕
- python - 如何在flask中创建excel文件并将其从服务器发送到客户端
- java - Proguard - 找不到 [android/database/Cursor] 的通用超类
- java - 我在 JPA 查询期间遇到转换类型错误,高效对话的最佳方式是什么?
- c++ - 为什么我不能调用 QMetaObject::invokeMethod(&threadObj, &QThread::start, Qt::QueuedConnection)?
- r - 使用 V8 $eval 在 R 中解析 JSON?
- python - 如何从库中获取类和函数名?
- python - Python暂停循环输入
- groovy - Groovy“as”运算符是否在运行时为用户定义的类创建子类?