Hi Fabien,
Thanks for your patience.
We have further investigated the issue PDFNEWNET-34112 reported earlier and as per our observations, VerifTableauold.pdf does not have any fields but it contains many annotations following code snippet fails when form.FieldNames(1) is invoked. Please recheck the issue with re-saved PDF file where Adobe Acrobat finds possible fields.
[VB.NET]
Dim form As
Aspose.Pdf.Facades.Form = New Aspose.Pdf.Facades.Form()<o:p></o:p>
form.BindPdf("c:\pdftest\VerifTableauold_resaved.pdf")
form.FillField(form.FieldNames(1), "Test value", False)
form.Save("c:\pdftest\VerifTableauold_output2.pdf")
'create PdfFileSignature object and
bind input and output PDF files
Dim pdfSign As New PdfFileSignature()
pdfSign.BindPdf("c:\pdftest\VerifTableauold_resaved.pdf")
'create a rectangle for signature
location
Dim rect As New System.Drawing.Rectangle(100,
100, 200, 100)
'create any of the three signature
types
Dim signature As New InteractiveFeatures.Forms.PKCS1("c:\pdftest\MySPC.pfx",
"test") '
PKCS#1 or
'PKCS7 signature = new
PKCS7("test.pfx", "password"); // PKCS#7 or
'PKCS7Detached signature = new
PKCS7Detached("test.pfx", "password"); // PKCS#7 detached
pdfSign.Sign(1, "Signature
Reason", "Contact", "Location", True,
rect, signature)
'save output PDF file
pdfSign.Save(“c:\pdftest\VerifTableauold_output3.pdf”)