You must close the document to use PdfCopy. If you don't want to close the doc you can add the other doc as imported pages.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Nikolay Nikolov > Sent: Tuesday, November 16, 2004 1:46 PM > To: [EMAIL PROTECTED] > Subject: [iText-questions] Append exising PDF to generated, > still open document > > Hallo > I have the followin issue: > I have to generate some contents in a PDF format and then i have to > add an existing PDF document. It is okay for now, but it should be > done without closing the generated document. In fact the pages of the > existing document should be added after the generated content. > EXAMPLE : let's say we have an existing PDF file, which is > "Java2Guide.PDF" . We should generate some document and name it > "myDocument.PDF". But before closing "myDocument.PDF", we should > append all the pages from "Java2Guide.PDF" to it ! > > I tried to do that by using PdfCopy instead of PdfWriter. But when > using PdfCopy as a listener to the document, commands such as > document.add(newParagraph("Some text")) > do not fill any content in the document. > > Any help would be greatly appreciated by me. > > Thanks in advance > Nikolay > > > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
