Results 1 to 4 of 4
  1. #1
    Ashish1 is offline Member
    Join Date
    Aug 2010
    Location
    kolkata
    Posts
    7
    Rep Power
    0

    Exclamation 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..

  2. #2
    Jodokus's Avatar
    Jodokus is offline Senior Member
    Join Date
    Jan 2011
    Location
    Amsterdam, the Netherlands
    Posts
    230
    Rep Power
    4

    Default 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.

  3. #3
    Ashish1 is offline Member
    Join Date
    Aug 2010
    Location
    kolkata
    Posts
    7
    Rep Power
    0

    Default 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..

  4. #4
    Jodokus's Avatar
    Jodokus is offline Senior Member
    Join Date
    Jan 2011
    Location
    Amsterdam, the Netherlands
    Posts
    230
    Rep Power
    4

    Default

    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

  1. need to convert from doc to pdf using Itext
    By webcraft in forum New To Java
    Replies: 0
    Last Post: 07-27-2010, 03:07 PM
  2. iText 2.0.4
    By levent in forum Java Software
    Replies: 2
    Last Post: 06-23-2010, 06:41 AM
  3. Itext
    By anilhk@gmail.com in forum Advanced Java
    Replies: 0
    Last Post: 04-14-2010, 05:03 AM
  4. Fedora Itext Unicode Problem
    By gautamn in forum Java 2D
    Replies: 0
    Last Post: 04-13-2009, 08:12 AM
  5. iText 2.1.0
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 03-29-2008, 01:05 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •