On Thu, 16 Apr 2009 19:56:34 +0200, 1T3XT info wrote: > Xavier Le Vourch wrote: >> I've just added two new tests cases in SVN based on the two pdf files >> you sent to the list. The first one is now fixed by Bruno's change but >> the one from this thread still fails with a NPE. > > And it SHOULD fail! Maybe not with a NullPointerException, > but the example doesn't make sense and some exception has to be thrown.
The same exception is thrown if I include the PdfContentByte of that page and copy it over to the new document. I removed that part from the example to make it clear that the hyperlinks are the culprit. > Unless Michael can explain what he expects to happen. The hyperlink that happens to be the first one of the hyperlinks on the first page of the source PDF should be "copied" onto the first page of the new PDF (i. e. clicking the same position should result in browsing to the same location). The same exception appears if I use a loop to move all the hyperlinks. And it still appears if I transform/scale the rectangles of hyperlinks. And, it still crashes, if you use jPDF Tweak and let it rescale the PDF (scaling both the content and the hyperlinks) to, say, A3 format. Perhaps you could be so kind and explain me why rescaling a PDF like this does not make sense? Thank you, Michael ------------------------------------------------------------------------------ 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 iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php