PDF document looks broken after processing in Aspose.PDF for .NET

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.

@BorisSh
That’s it, thanks for writing - I’ll create a task for the development team.
The only remark is that in my environment the error is reproduced starting from version 23.10

@BorisSh
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-56185

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.