I know if I can put digital signature with these codes line :
Dim license As Aspose.Pdf.License = New Aspose.Pdf.License
Dim pdfSign As New PdfFileSignature() pdfSign.BindPdf("source.pdf") Dim signature As New PKCS1("JoeSigner.pfx", "password123") pdfSign.Sign(1, True, New System.Drawing.Rectangle(100, 100, 200, 50), signature) Dim fs As New FileStream("signature.jpg", FileMode.Open) pdfSign.SignatureAppearanceStream = fs pdfSign.Save("result.pdf")
but I want something dynamically rather set position of digital signature with this code:
System.Drawing.Rectangle(100, 100, 200, 50),
I would like to make it automatically set into near position where some object exist. For eg where the mail merge field XXXX exist.
similar question has been asked and answered perfectly at How to get the textbox in mailmerge field
unfortunately it is with aspose.word. But might be give you an idea what I’m looking for.
Please any suggestion with sample codes will be appreciated.
Thanks in advance.