wood burning stoves 2.0*
The moose likes Other Java Products and Servers and the fly likes Modifying pdf with itext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Modifying pdf with itext" Watch "Modifying pdf with itext" New topic
Author

Modifying pdf with itext

Andrew Lohans
Greenhorn

Joined: May 16, 2005
Posts: 4
Hi all,

if I imagine I have a byte array containing an existing pdf I've read from the filesystem, and some text I want to insert into the pdf at a select point, is it possible to produce a byte array containing the new pdf with the text at the set point using itext?
In this particular example, I have a pdf letter template, and am wanting to put the adress of the recipient in the address area of the letter. Some code detailing how to do this with iText would be greatly appreciated.

thanks!
Andrew
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41082
    
  43
This is not possible with iText or any other PDF library. Once a PDF document has been created, the range of things you can do with it is very limited. There is no reliable way to access parts of a page.

If the document uses AcroForms, then you can use iText to fill in the fields of the form. But in general this doesn't work.
[ January 27, 2006: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
 
jQuery in Action, 2nd edition
 
subject: Modifying pdf with itext
 
Similar Threads
iText and template.
Creation of icepdf-core.jar and icepdf-viewer.jar from ICEPDF.
Open iText generated pdf in Internet explorer
PDF writer
problem reading pdf with iText Library