PdfStamper does it all.

Paulo

----- Original Message ----- 
From: "Karl Nolan" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, September 07, 2006 2:33 PM
Subject: [iText-questions] Question relating to appending a PDF using iText


> Hi, Is it possible to open a PDF document and append some text (or update
> field) to the original PDF document. I see that there is loads of examples
> of writing new PDF document using PdfWriter and adding a document using a
> new Paragraph object.
>
>
> I have tried to use;
>
> PdfWriter.getInstance(document,
>                        new FileOutputStream("HelloWorld.pdf", true));
>
> using the append option in FileOutputStream (ie. append )
>
> *FileOutputStream<http://java.sun.com/j2se/1.4.2/docs/api/java/io/FileOutputStream.html#FileOutputStream%28java.io.File,%20boolean%29>
> *(File <http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html> file,
> boolean append)
>
> but the api seems to ignore this.
>
> I know I could create another pdf and then delete the previous one, and 
> then
> rename the new one to the original file name but this will take some time
> which I'm not sure I will have in very big PDF documents.
>
> Any help will be appreciated,
> Thanks Karl
>


--------------------------------------------------------------------------------


> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job 
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


--------------------------------------------------------------------------------


> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to