[Podofo-users] Patch to support PDF XRefStm
Hi PoDoFo 0.9.2 and earlier don't support cross reference streams (XRefStm) which means it can't correctly read some PDFs. For example, 0.9.2 can't resolve the StructTreeRoot reference in this document: http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf The attached patch adds support for XRefStm to PdfParser::ReadNextTrailer() by adding code between MergeTrailer( trailer ); and if( trailer.GetDictionary().HasKey( Prev ) ) 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 PdfParser.cpp.patch Description: PdfParser.cpp.patch -- ___ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users
Re: [Podofo-users] Patch to support PDF XRefStm
On Tue, 2014-04-01 at 06:35 -0500, Mark Rogers wrote: ... The attached patch adds support for XRefStm to PdfParser::ReadNextTrailer() by adding code between ... Hello, thanks for the patch, I committed it to trunk as r1587: http://sourceforge.net/p/podofo/code/1587 Bye, zyx -- http://www.litePDF.cz i...@litepdf.cz -- ___ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users