Skip to Content
author's profile photo
Former Member

creating PDF file using Itext 1.3 jar

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Oct 06, 2005 at 05:00 AM

    Hi rao,

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

    Create a PDF file using JAVA

    Regards

    gEorgE

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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