我有一个签名板。我将签名板值保存为数据库中的字节数组图像。我已经在图像控件上显示了此图像。我想在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上显示图像?