Hello,
We are using Aspose.PDF.Drawing 25.3.
When accessing this document, we randomly have an Aspose.Pdf.ObjectReferenceCorruptedException exception. Other Applications such as Abode Acrobat Reader or wonderhare PDFElement are opeing it without any issue.
Exception is triggered with the instruction:
var page = pdfDocument.Pages[2];
FEADI - 26 novembre 2024.pdf (667.4 KB)
@tfipsrd
I check code:
var doc = new Document(dataDir + "FEADI - 26 novembre 2024.pdf");
Page page = doc.Pages[2];
in .Net 6 project, Windows 10 and in Docker Linux container - it works without exceptions.
What do you use?
Using Windows 10 and .Net 8
@tfipsrd
Checked in .Net 8 with code
var doc = new Document("FEADI - 26 novembre 2024.pdf");
Page page = doc.Pages[2];
doc.Pages.Add(page);
doc.Save("FEADI_out.pdf");
no exceptions, result valid.
FEADI_out.pdf (679.5 KB)
Please provide a more complete code that you use.