I am running into an error when attempting to edit a PDF file after merging with XML using Aspose. I am following example code from the documentation at this page.
Here is a snippet of code from my example project:
using (var pdfForm = new Aspose.Pdf.Facades.Form(pdfFile))
using (var fileStream = new FileStream(xmlFile, FileMode.Open))
After performing the XML import, if I try to open the merged PDF file in Adobe Acrobat and continue to edit fields in the PDF file, then try to Save it, I get the following error from Acrobat when saving the changes.
The document could not be saved. There was a problem reading this document (105).
I have attached the full project with example PDF and XML files. Here are the versions of Aspose and Acrobat I am using:
Aspose.PDF (latest) - 17.4.0
Adobe Acrobat Standard DC - 2015.006.30306
The information I can gather on the (105) error suggests that the PDF format may be invalid.
Can you determine if Aspose.PDF is creating an invalid PDF format that can no longer be modified by Acrobat and if so, can it be fixed?