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

Using iTextPdf Examples

Alexey Teslin

Joined: Sep 25, 2013
Posts: 1

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 "" site. And am trying to test/run HelloWorld from "" 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

Joined: Oct 14, 2005
Posts: 19973

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

Joined: Oct 14, 2005
Posts: 19973

And, welcome to the Ranch!
I agree. Here's the link:
subject: Using iTextPdf Examples
It's not a secret anymore!