Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] JDK1.3.1

Eugene R

2005-06-14


Hi

Did anybody have this problem?

iText.jar has been compiled with JDK1.3.1
The following would crash when executed with v.1.3.1; no problem though when using v.1.4.X
            DefaultFontMapper fontMapper = new DefaultFontMapper();
            fontMapper.insertDirectory(javaFonts);
            //  Create a template and corresponding Graphics2D object
            PdfContentByte contentByte = pdfWriter.getDirectContent();
            PdfTemplate pdfTemplate = contentByte.createTemplate(width, height);
            printableGraphics = pdfTemplate.createGraphics(width, height, fontMapper);

I cannot upgrade Java; older version is a project requirement.

Thank you,
Eugene Rozhdestvensky
©2008 junlu.com - Jax Systems, LLC, U.S.A.