Cannot open file in Adobe Reader: There was a problem reading this document (111)'

We cannot open files in Adobe Reader generated by Aspose.PDF v19.1. It shows the error message: “There was an error opening this document. There was a problem reading this document (111).”.

It issue seems to be fixed when we upgrade to Aspose.PDF v19.10…

But the weird thing is 19.1 works in another project. That is, PDF’s generated from that project can be opened in Adobe.

The project that works is .on .NET framework 4.6.1, and the one that does not work is on .NET 5.0.

Could that explain the difference? The release notes for 19.10 say “Support for .NET Core 3.0”.
Just kind of confused as what changed in 19.10 that it suddenly works there.

Can anyone shed any light on this? Much appreciated

1 Like

@peterv85

The version 19.1 was not compatible with .NET 5.0. However, we need to further check what changes were made in 19.10. Can you please share sample code snippet that you are using to generate the PDF?

PS: We cannot fix any issue happening in older version(s) of the API e.g. 19.1, 19.10, etc. as support is provided on the basis of the latest version of the API.

Hi I understand I’m just trying to figure out what the incompatibility is.

var form = new Aspose.Pdf.Facades.Form(tempTemplateStream);
// fill in fields

form.FlattenAllFields();
form.Save(tempTemplateStream);
form.Close();
form.Dispose();

FlattenAllFields() is what breaks the pdf on adobe reader.

@peterv85

Thanks for sharing the sample code. We will try to check what significant change was made in 19.10 version at that time will share with you.

@peterv85

It is quite hard to investigate and check the logs of changes made to the API because the version in the discussion is quite old. We apologize that investigation against your inquiry did not return any shareworthy results. If you can share a sample PDF which replicates the issue with 19.1 version and same issue is not happening with 19.10 while using same file, we will open another investigation and share the ID with you.