Re: [iText-questions] PdfStamper appending to existing file

2009-02-11 Thread 1T3XT info
theas...@hotmail.com wrote: > Thanks! It works! > Then when do I use PdfStamper, if writer will give me similar functionality? > I thought that writer could just import and could not modify the imported > pages. You can't add stuff to the PdfImportedPage, but you can add extra content to the Pdf

Re: [iText-questions] PdfStamper appending to existing file

2009-02-11 Thread 1T3XT info
rorostar wrote: > > What I'm trying to do is create a PDF file from several "template" pdf > files. > The first few pages of the PDF file are generated texts (cover page, table > of content, etc), and then after that, I would need to append and edit from > other existing template (basically adding

Re: [iText-questions] PdfStamper appending to existing file

2009-02-11 Thread 1T3XT info
rorostar wrote: > It seemed that when creating a PdfStamper, there is a PdfWriter created > inside of it. > Since I have a different PdfWriter that I created for the main PDF file, i > tried to redirect the output of the PdfWriter inside of the PdfStamper to > the main PdfWriter. > Is this not supp

Re: [iText-questions] PdfStamper appending to existing file

2009-02-10 Thread rorostar
It seemed that when creating a PdfStamper, there is a PdfWriter created inside of it. Since I have a different PdfWriter that I created for the main PDF file, i tried to redirect the output of the PdfWriter inside of the PdfStamper to the main PdfWriter. Is this not supposed to work? writer.getDi

Re: [iText-questions] PdfStamper appending to existing file

2009-02-10 Thread rorostar
s. Paulo Soares-3 wrote: > > > >> -Original Message- >> From: rorostar [mailto:theas...@hotmail.com] >> Sent: Tuesday, February 10, 2009 4:57 PM >> To: itext-questions@lists.sourceforge.net >> Subject: [iText-questions] PdfStamper appending to existing f

Re: [iText-questions] PdfStamper appending to existing file

2009-02-10 Thread rorostar
What I'm trying to do is create a PDF file from several "template" pdf files. The first few pages of the PDF file are generated texts (cover page, table of content, etc), and then after that, I would need to append and edit from other existing template (basically adding certain text at certain pi

Re: [iText-questions] PdfStamper appending to existing file

2009-02-10 Thread 1T3XT info
rorostar wrote: > Hi, > > I have a question regarding PdfStamper. > > Here is the code snippets > > > FileOutputStream outputStream = new > FileOutputStream("C:\\Java\\HelloWorld.pdf"); > PdfWriter writer = PdfWriter.getInstance(document, outputStream); > document.open(); > //add stuffs to doc

Re: [iText-questions] PdfStamper appending to existing file

2009-02-10 Thread Paulo Soares
> -Original Message- > From: rorostar [mailto:theas...@hotmail.com] > Sent: Tuesday, February 10, 2009 4:57 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] PdfStamper appending to existing file > > > Hi, > > I have a

[iText-questions] PdfStamper appending to existing file

2009-02-10 Thread rorostar
Hi, I have a question regarding PdfStamper. Here is the code snippets FileOutputStream outputStream = new FileOutputStream("C:\\Java\\HelloWorld.pdf"); PdfWriter writer = PdfWriter.getInstance(document, outputStream); document.open(); //add stuffs to documents //This is the file to copy PdfR