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

Free Support Forum - aspose.com

Convert XFA to Standard AcroForm using Aspose.PDF for .NET - Total pages are changed after form type static

I noticed an issue when changing the Adobe Live cycle/XFA form document form type to static, the total number of pages are changed.

Below are the code we used to convert form type to static.
Aspose.Pdf.License license = new Aspose.Pdf.License();
license.Embedded = true;
license.SetLicense(“Aspose.Pdf.lic”);
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(fullPath);
doc.Form.Type = Aspose.Pdf.Forms.FormType.Static;
fullPath = fullPath.Replace("/", “\”);
string fileName = fullPath.Substring(fullPath.LastIndexOf(’\’) + 1);
string path = Path.GetTempPath();
doc.Save(path + “\” + fileName.Replace(".pdf", guid + “.pdf”));
doc.Dispose();
doc = null;
Issue: Total number of pages are not same after form type static.

Please let me know if you need any more details needed on this.

@iarabhavi

Would you please also share the sample PDF document with us for our reference? We will test the scenario in our environment and address it accordingly.

@asad.ali

Please find the attached sample document.
Sample_eAF_Document.pdf (569.7 KB)

@iarabhavi

We were able to reproduce the error in our environment while testing with 21.6 version of the API. Therefore, have logged an issue as PDFNET-50110 in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

@asad.ali
Have any detail solution on this item?

@iarabhavi

The issue has recently been logged in our issue tracking system and is pending for an investigation. We will analyze and resolve it on first come first serve basis. As soon as we have some updates in this regard, we will surely inform you in this forum thread. Please give us some time.

We are sorry for the inconvenience.

@asad.ali,
Have any solution on this item?

@iarabhavi

We are afraid that it has not been resolved yet due to other issues in the queue. However, we will surely inform you once we have additional updates regarding ticket resolution. Please give us some time.

We are sorry for the inconvenience.