Product: PDFNetC64
Product Version: 8.0.0 / 9.5.3
Please give a brief summary of your issue:
Exception from within document.getPageIterator ()
Please describe your issue and provide steps to reproduce it:
We’re having an exception while trying to iterate document pages.
This is the exception:
com.pdftron.common.PDFNetException: Exception: Message: Attempt to load a free object Conditional expression: obj.IsFree() == false Version : 9.3.0-8832761 Platform : Linux Architecture : AMD64 Filename : SDFDocImpl.cpp Function : LoadObj Linenumber : 1269 at com.pdftron.pdf.PDFDoc.GetPageIteratorBegin(Native Method) at com.pdftron.pdf.PDFDoc.getPageIterator(PDFDoc.java:1225) at pdftronmanager.PDFTronManager.generateXfdf(PDFTronManager.java:1147) at pdftronmanager.PDFTronManager.main(PDFTronManager.java:313).
Our code is similar to the provided in the example:
PDFDoc document = new PDFDoc (pdfPath);
document.initSecurityHandler ();
…
FDFDoc fdfDoc = FDFDoc.createFromXFDF (outputXfdfPath);
document.fdfMerge (fdfDoc);
for (PageIterator itr = document.getPageIterator (); itr.hasNext (); ) // in this line the exception is thrown
{
This works ok for most of the pdfs, however we found one that produces that exception.
Do you have any idea about what could be causing this?
Thank you very much.
Please provide a link to a minimal sample where the issue is reproducible:
Unfortunately I can’t share the PDF because is private content.