Results 1 to 4 of 4
Thread: Problem using iText
- 04-07-2011, 02:49 PM #1
Member
- Join Date
- Aug 2010
- Location
- kolkata
- Posts
- 7
- Rep Power
- 0
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..
com.lowagie.text.*;
com.lowagie.text.pdf.*;
----packages..but i can't understood from where did they get those packages...
I also extracted the jar file and got :
com.itextpdf.text.*;
com.itextpdf.text.pdf.*;
I'm so confused ..please help me...and also like to know some eBook name regarding this topic..
- 04-07-2011, 08:36 PM #2
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.*;
com.itextpdf.text.pdf.*;
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.
- 04-09-2011, 12:37 PM #3
Member
- Join Date
- Aug 2010
- Location
- kolkata
- Posts
- 7
- Rep Power
- 0
iText Reply
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..
- 04-10-2011, 02:35 PM #4
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
Similar Threads
-
need to convert from doc to pdf using Itext
By webcraft in forum New To JavaReplies: 0Last Post: 07-27-2010, 03:07 PM -
iText 2.0.4
By levent in forum Java SoftwareReplies: 2Last Post: 06-23-2010, 06:41 AM -
Itext
By anilhk@gmail.com in forum Advanced JavaReplies: 0Last Post: 04-14-2010, 05:03 AM -
Fedora Itext Unicode Problem
By gautamn in forum Java 2DReplies: 0Last Post: 04-13-2009, 08:12 AM -
iText 2.1.0
By Java Tip in forum Java SoftwareReplies: 0Last Post: 03-29-2008, 01:05 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks