Re: [iText-questions] Null Pointer Exception on getImportedPage

2009-07-24 Thread 1T3XT info
Bruce Van Horn wrote: > i think i figured it out. funny how reading your own posts gives you ideas... > > i decided to move the doc.open() statement to AFTER the pdfcopy statement. Yes, that's the right order: Step one: create the Document. Step two: create the PdfWriter (in this case PdfCopy).

Re: [iText-questions] Null Pointer Exception on getImportedPage

2009-07-23 Thread Bruce Van Horn
i think i figured it out. funny how reading your own posts gives you ideas... i decided to move the doc.open() statement to AFTER the pdfcopy statement. No more NPE. I can see the concatenated file in the proper folder. Of course that leads to another problem to solve but not likely an insur

[iText-questions] Null Pointer Exception on getImportedPage

2009-07-23 Thread Bruce Van Horn
I have struts app that generates multiple PDF's based on user selected data from a table. Basically its sending in a selection id, and I'm querying a database, then creating pdf's using stamper. I need to concatenate all these files into one when I'm done. I wrote a simple static function in