On Tue, 2018-05-22 at 15:01 +0000, Mark Rogers wrote: > The cycle detection code in PdfParser::ReadXRefContents detects a > cycle in the attached document (a US IRS 13909 tax form) > > This PDF loaded without problems in r1919 and earlier (so probably > doesn’t have a cycle)
Hi, it seems nobody found a time to look on this yet, thus I took it and I extended the r1920 in revision 1929: http://sourceforge.net/p/podofo/code/1929 which makes it possible to open your file again. Furthermore, it makes the code more forgiving, because, instead of throwing an exception and not opening the file at all, it simply skips the read at the same offset, warns about this skip and then continues. At least in this particular case. From the file itself, it had been updated several times and the last update references /Prev 884289, which is also used in the previous update's XRef stream (also as /Prev 884289), which made it look like a cycle for the PoDoFo code. The pre-r1920 code reads the objects twice. Thanks and bye, zyx ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users