We have a dynamic XFA form created in Adobe LifeCycle that fails with Object Reference Not Set To an Instance of an object. The XFA form opens fine in Adobe Reader & FoxIt Reader.
The code using the Aspose PDF library is:
Document document = newDocument("c:\\temp\\spool\\protected.pdf");document.Form.Type =
FormType.Standard;document.Save(
"c:\\temp\\spool\\Standard_AcroForm2.pdf");The exception is thrown on the 2nd line (document.Form.Type = FormType.Standard) which is where I guess it tries to do the conversion.
Basically I am trying to flattern the Dynamic XFA to a static PDF that can be opened with older versions of PDF readers.
Help...!