Problem using iText
Hi,all..I am doing a web based project..using j2ee..and using netBeans.
In which i need to generate a .pdf file based upon some data stored in DB.
For that I want to Use iText 5. I searched through some tutorial sites..and found that they have imported..
----packages..but i can't understood from where did they get those packages...
I also extracted the jar file and got :
I'm so confused ..please help me...and also like to know some eBook name regarding this topic..
Lame helping the blind
I never used iText, but I was curious about PDF-conversion, so I tried it myself after your post.
I used this tutorial: Creating PDF with Java and iText - Tutorial, and it worked flawlessly.
It makes a pdf, formats a pdf, and reads it.
The packages are named as your second variation: com.itextpdf.text.*;
It needs a directory, C:/temp/, but strangly uses a "free" path in the second example (making a file in the project-tree).
Thanks for showing me this tool. If you need more help, ask. I'm an expert now on this tutorial :>)
I'm using Eclipse but that shouldn't matter.
Thanx..for your concern..i also have managed to get past this hurdle..and now I can generate pdf, reading from pdf..etc..
Ok...now i'm facing a problem upon creating header & footer in pdf files..likewise i can't find HeaderFooter class..which supposed to be in itextpdf.text package..of iText 5.0.6 but i can't find it any way...I also tried iText 5.0.0 and can't find that class in it too...so..i need help..
I found a link. I think it explains the different libraries you spoke of (version 2 and 5: lowagie and itextpdf). It also explains the difference in making headers and footers.
I have no time now to delve into this further. If you find out I'm glad to hear from you. (Otherwise too of course.)
iText example at JavaRanch