Hi This looks like a bug. PoDoFo 0.9.2 PdfMemDocument sometimes doesn't load objects contained inside object streams (/Type ObjStm)
I've seen this in several files, but this is a simple example: http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf 1) If you view this PDF file using PoDoFoBrowser, it only shows about 113 objects loaded (there's a gap in object numbers between obj 73 and obj 710) 2) If you uncompress the object streams in PDFOpenParameters.pdf using pdftk, then view the file in PoDoFoBrowser it shows 740 objects loaded (with no gap in the object numbers). Objects contained in the object streams are displayed by several other PDF tools (including Adobe Reader) so I'm inclined to think the problem is in PoDoFo. Here's what I've found so far: 1) PdfParser::ReadObjectsInternal() only calls PdfParser::ReadObjectFromStream() if m_offsets[i].cUsed == 's' 2) m_offsets[i].cUsed = 's' is set in PdfXRefStreamParserObject::ReadXRefStreamEntry 3) ReadXRefStreamEntry is called (indirectly) by PdfParser::ReadXRefStreamContents 4) ReadXRefStreamContents is never called when PDFOpenParameters.pdf is read, but I can see an XRefStm when displaying the PDF in a text editor I'm happy to try to produce a patch, but some pointers on where to start looking for the cause would be much appreciated. Best Regards Mark Mark Rogers - mark.rog...@powermapper.com PowerMapper Software Ltd - www.powermapper.com Registered in Scotland No 362274 Quartermile 2 Edinburgh EH3 9GL ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users