We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert XFA to AcroForm and Digitally Sign PDF using Aspose.PDF for .NET

Hi there,

I am a Aspose.Words customer and am evaluating Aspose.PDF. Can you tell me if Aspose.PDF can update Adobe Livecycle forms ?

THanks


Hi Chris,


Thanks for your inquiry. Yes you can update Adobe Livecycle forms with Aspose.Pdf. Please check following documentation link for the purpose.


Please feel free to contact us for any further assistance.

Best Regards,

Thank you for the information - I am able to discover and fill the form fields in the XFA document with the information you provided.

I have one more question: Can you digitally sign an XFA document from Aspose? I am able to see how to do it in a regular Acrobat doc, but I can not find any documentation on how to do in in XFA.

Thanks for your help

Hi Chris,


Thanks for your feedback. It is good to know that you have managed to fill XFA form.

Moreover in reference to digitally signing an XFA form. Please check documentation to digitally sign PDF file, It should work. However if you find any issue then please share your sample PDF document here. We will look into it and will guide you accordingly.

Best Regards,

I am unable to sign the XFA form. I can update/fill fields, but the signing does not produce any results or errors. As requested, here is the code and sample document that I am attempting to sign.

Please let me know if you need any other information

Thanks

=================================================================

Dim license As New Aspose.Pdf.License()
license.SetLicense(MapPath("~/Aspose.Pdf.lic"))


Dim pdfSign As New PdfFileSignature("c:/temp/blank.pdf", "c:/temp/signed.pdf")

'create a rectangle for signature location
Dim rect As New System.Drawing.Rectangle(100, 100, 200, 100)

pdfSign.SignatureAppearance = "c:/temp/test.jpg"

Dim signature As New PKCS1("c:/temp/Fairbanks.pfx", "Fairbanks") ' PKCS#1 or

pdfSign.Sign(1, "Signature Reason", "Contact", "Location", True, rect, signature)

pdfSign.Save()Dim license As New Aspose.Pdf.License()
license.SetLicense(MapPath("~/Aspose.Pdf.lic"))


Dim pdfSign As New PdfFileSignature("c:/temp/blank.pdf", "c:/temp/signed.pdf")

'create a rectangle for signature location
Dim rect As New System.Drawing.Rectangle(100, 100, 200, 100)

pdfSign.SignatureAppearance = "c:/temp/test.jpg"

Dim signature As New PKCS1("c:/temp/Fairbanks.pfx", "Fairbanks") ' PKCS#1 or

pdfSign.Sign(1, "Signature Reason", "Contact", "Location", True, rect, signature)

pdfSign.Save()

Hi Chris,


Thanks for sharing the resource file.

I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as PDFNEWNET-37584. We will
investigate this issue in details and will keep you updated on the status of a
correction. <o:p></o:p>

We apologize for your inconvenience.

Hello,

Is there any progress on this issue (PDFNEWNET-37584) ?

Hi Chris,


Thanks for your patience.

As per our understanding, XFA forms cannot be signed. So in order to sign the document, please either convert them to Static or Standard format and then try signing them. For further details, please visit Convert Dynamic XFA Form to Standard AcroForm