On Thu, 16 Apr 2009 18:21:34 +0200, 1T3XT info wrote: > Michael Schierl wrote: >> To reproduce, just run the following code on the attached PDF. >> >> String filename = "D:\\temp\\buggy.pdf"; >> PdfReader rdr = new PdfReader(new >> RandomAccessFileOrArray(filename), new byte[0]); >> // this one works: PdfReader rdr = new PdfReader(filename); >> rdr.consolidateNamedDestinations(); // does not help >> rdr.getLinks(1); > > I applied a hack (see SVN) based on the analysis of the other Michael > (the one from wir-sind-cool; who really is cool ;-) ). > As Michael points out, it's not very elegant to depend on a side effect, > and that's why I talk about a hack when referring to the change I made, > but I tested your example and it seems to work now.
Thanks for your quick fix. Unfortunately it still does not work for the original PDF (which is a bit too large to attach it here). I managed to build a smaller PDF that shows the same behaviour, this time when requesting the links for page 4. This causes the same error as the one before, but the error remains in latest SVN (3865) as well. Regards, Michael
pagefour.pdf
Description: Attached file: pagefour.pdf
------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
