File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes pdf object mapping using iText Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "pdf object mapping using iText" Watch "pdf object mapping using iText" New topic

pdf object mapping using iText

chan Diaz

Joined: Oct 09, 2008
Posts: 4
hi everybody,

i am a bit clueless how to print a pdf invoice with the data mapped with the user input. for example when a user enters data these need to be mapped to specific locations on a previously designed form. i browsed to find out iText can be used but just cant figure out how.

can some one offer to give me a iText tutorial which can be used to write my program.

thanks in advance.
[ October 09, 2008: Message edited by: Ulf Dittmer ]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Hello "chan95"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

If you're at all serious about iText, then you need the book "iText in Action". It explains all the advanced form handling options in great detail with many code examples. You will spend much more time hunting down those details on the web than your employer will pay for the book.

Having said that, the iText tutorial has some examples of form handling. The library has come a long way since that was written, though, so it has lots more capabilities now than are shown in those examples.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46352
"chan95" you have obviously missed the naming policy when you logged on: we require first name-space-last name not numbers. Your displayed name is not in the right format; please go to "my profile" "update profile" and correct your displayed name to comply.

chan Diaz

Joined: Oct 09, 2008
Posts: 4
sorry about the naming policy, which i obviously didnt take much notice of while registering.

but i would appreciate if some body could give me a clue at least in broader view of how i could achieve this.

so far i have gathered the facts so that i managed to get the pdf drawn and labeled on the pdf. i got a sample xml and xsl file written. Then as i read and understood XFDF file needs to be generated and jsp/servlet needs to be used for mapping the nodes with the object names on the pdf. which i cant figure out how?

can some body please help!
I agree. Here's the link:
subject: pdf object mapping using iText
It's not a secret anymore!