Hello.
We process user pdf documents and in rare cases receive unexpected result. Here is example code:
Document _doc = new Document("2642_in.pdf");
var ppe = new PdfPageEditor(_doc);
ppe.ProcessPages = new int[] { 1 };
ppe.Zoom = 0.9f;
ppe.HorizontalAlignment = HorizontalAlignment.Center;
ppe.VerticalAlignmentType = VerticalAlignment.Center;
ppe.ApplyChanges();
string outFileName = "2642_out.pdf";
_doc.Save(outFileName);
When we apply this code to file 2642_in.pdf (91.4 KB) and then try to open output file in latest Adobe Acrobat we get “There was a problem reading this document (135)” error and document does not open. If we open it in latest Chrome it opens as blank page.
We noticed this behaviour in versions 23.9.0-23.12.0 of Aspose PDF for .NET. In 23.8.0 works fine.
We run application using .net 6.0.
Please consider changing the behaviour of Aspose.PDF for .NET.