cancel
Showing results for 
Search instead for 
Did you mean: 

creating PDF file using Itext 1.3 jar

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi rao,

You can refer to this link. Its a beautiful weblog for which explains how to create pdf files in NWDS or eclipse.

Regards

gEorgE

Former Member
0 Kudos

I referred to that weblog by prakash and developed my program and it is working well. But if I compile the code with IBM JDK 1.4.2 rather than sun's JDK I am getting compilation errors.

-rao