Hi
I finally had a chance to look at this – looks like there’s a long-standing bug
in PdfParser::ReadXRefStreamContents
Once called, the method assumes that all cross reference information found by
following the “Prev” keys is stored as cross ref streams (XRefStm). The IRS
test documents uses a mix of old style cross-ref tables (xref) and cross ref
streams (XRefStm) in the Prev chain. I’m guessing they’ve been through a couple
of different PDF editors.
PdfTokenizer::GetNextNumber() is throwing an error because the next token is
“xref” instead of number when it reads an xref table it assumes is an XRefStm
Given that fixing this might uncover more problems, and it’s very close to
release day, I’d suggest keeping r1648 for the moment and I’ll submit a patch
after the release.
Does that sound ok?
Cheers
Mark
Mark Rogers - [email protected]
PowerMapper Software Ltd - www.powermapper.com
Registered in Scotland No 362274 Quartermile 2 Edinburgh EH3 9GL
From: Dennis Jenkins [mailto:[email protected]]
Sent: 30 June 2014 21:31
To: zyx
Cc: [email protected]
Subject: Re: [Podofo-users] SVN commit 1587 broke ability to parse several PDFs
On Mon, Jun 30, 2014 at 3:10 PM, zyx <[email protected]<mailto:[email protected]>>
wrote:
Hi,
thanks for a quick testing. I committed the patch as r1648 [1]. If
you'll find time and give it more thorough testing by Friday, then
it'll be great (you know, just in case it has any side-effects).
Thanks again and bye,
zyx
[1] http://sourceforge.net/p/podofo/code/1648
Hello,
r1648 works fine for me, for both my quick parser test and for my full suite
of unit tests for my own project. Thank you!
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users