Re: [iText-questions] NullPointerException in PdfWriter.getNewObjectNumber

2009-04-16 Thread Michael Schierl
On Thu, 16 Apr 2009 20:32:35 +0200, 1T3XT info wrote: > Michael Schierl wrote: >> The same exception is thrown if I include the PdfContentByte of that page >> and copy it over to the new document. > > What do you mean by this? A PdfImportedPage or just a content stream? // after document.newPage

Re: [iText-questions] NullPointerException in PdfWriter.getNewObjectNumber

2009-04-16 Thread 1T3XT info
Michael Schierl wrote: > 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. Let me rephrase my question: has this ever worked? Because at first sight, I can't see how it would work. -- This answer is provided

Re: [iText-questions] NullPointerException in PdfWriter.getNewObjectNumber

2009-04-16 Thread 1T3XT info
Michael Schierl wrote: > The same exception is thrown if I include the PdfContentByte of that page > and copy it over to the new document. What do you mean by this? A PdfImportedPage or just a content stream? > I removed that part from the example > to make it clear that the hyperlinks are the cu

Re: [iText-questions] NullPointerException in PdfWriter.getNewObjectNumber

2009-04-16 Thread Michael Schierl
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

Re: [iText-questions] NullPointerException in PdfWriter.getNewObjectNumber

2009-04-16 Thread 1T3XT info
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 doe

Re: [iText-questions] NullPointerException in PdfWriter.getNewObjectNumber

2009-04-16 Thread Xavier Le Vourch
Michael Schierl wrote: > Hello again, > > now I managed to condense the "bad" PDF I wrote about in the > postscriptum of my last email to one small page that still shows the > behaviour. 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 n

[iText-questions] NullPointerException in PdfWriter.getNewObjectNumber

2009-04-16 Thread Michael Schierl
Hello again, now I managed to condense the "bad" PDF I wrote about in the postscriptum of my last email to one small page that still shows the behaviour. This time, the code to reproduce is a bit longer: PdfReader currentReader = new PdfReader("D:/temp/bug.pdf"); Document documen