Skip to Content
0
Former Member
Oct 05, 2005 at 08:07 PM

creating PDF file using Itext 1.3 jar

103 Views

I have used itext lib to convert a tableview to pdf document. It is working fine if I compile the code with sun's JDK 1.4.2. Bur we are using JDI and the build process uses IBM JDK 1.4.2. I tried to build the DC using IBM jDK and I get the following errors.

The project was not built since its classpath is incomplete. Cannot find the class file for java.awt.Color. Fix the classpath then try rebuilding this project.

This compilation unit indirectly references the missing type java.awt.Color typically some required class file is referencing a type outside the classpath.

import java.awt.Color;

.......

PdfPTable table = new PdfPTable(cols);

Font headerCellFont =

FontFactory.getFont(

FontFactory.HELVETICA,

8,

Font.NORMAL,

new Color(0, 0, 0));

Thanks in advance.

Rao