File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Using iTextPdf Examples 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 "Using iTextPdf Examples" Watch "Using iTextPdf Examples" New topic
Author

Using iTextPdf Examples

Alexey Teslin
Greenhorn

Joined: Sep 25, 2013
Posts: 1
Hi,

I am trying to run some iTextPdf examples before buying the book and lisence to decide if this tool is what I really need. I downloaded iText Library from "http://sourceforge.net/projects/itext/files/" site. And am trying to test/run HelloWorld from "http://itextpdf.com/examples/iia.php?id=12" site - it's just a single .java file. This suppose to be the simplest example I guess.

But when I try to run I am getting the error on "package com.itextpdf.text does not exist".

Has anyone experienced a similar problem and offer some help please ? I even copied the iText jar files into the example project.

Thank you
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18882
    
    8

That would mean that the jar file isn't in your classpath when you compile that code, then.

Although you mention a "project". That suggests you are using some kind of IDE to compile your code. In that case you probably haven't added the jar to the project's classpath, or build path, or whatever your unknown IDE calls it.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18882
    
    8

And, welcome to the Ranch!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using iTextPdf Examples