Free Support Forum - aspose.com

Problem reading this document (105) - After Merging XML with PDF

Hi,

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.

https://docs.aspose.com/display/pdfnet/Import+and+Exmport+Data

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))
{
pdfForm.ImportXml(fileStream);

fileStream.Close();

pdfForm.Save(mergedFile);
}
}

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?

Thanks!

Hi Jill,


Thank you for sending a sample project and files. We managed to replicate the said error and have logged under the ticket ID PDFNET-42743 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates. We are sorry for the inconvenience caused.

Hi,

Are there any updates regarding issue PDFNET-42743 or chance it might get fixed sometime?

Thanks!

@jyoung,

The linked ticket ID PDFNET-42743 is pending for the analysis and not resolved yet. We will investigate as per the development schedules and let you know once it is fixed.