Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #26516

    Hi,
    I work with a web-application that creates PDF’s from HTML with the library “PD4ML pro”. It works like a charm, it’s really much easier than coding on iText, thank you guys!

    I want to integrate chinese and other languages strange characters, but I’ve problems with .ttf files in prod.

    I’ve created use a “fonts.jar” file that is in my WEB-INF/lib folder.
    That font.jar file contains:
    – all my .ttf files
    – “fonts.properties” file that contains :

    <br /> #this is an autogenerated file. please remove manually any references to copyrighted fonts<br /> #Sun Feb 06 11:45:00 CET 2011<br /> =Helvetica.ttf<br /> Arial=arial.ttf<br /> Arial Black=ariblk.ttf<br /> Arial Bold=arialbd.ttf<br /> Arial Bold Italic=arialbi.ttf<br /> Arial Italic=ariali.ttf<br /> Courier New=cour.ttf<br /> Courier New Bold=courbd.ttf<br /> Courier New Bold Italic=courbi.ttf<br /> Courier New Italic=couri.ttf<br /> Helvetica Cyrillic Bold=Helvetica Bold.Ttf<br /> Helvetica Cyrillic Bold Oblique=Helvetica Bold Oblique.Ttf<br /> Helvetica Cyrillic Oblique=Helvetica Oblique.Ttf<br /> KaiTi_GB2312=SIMKAI.TTF<br /> font.dir.location=/fonts/<br />

    In a development mode on Windows, I don’t have any problem, my application works perfectly. But in a production mode on a UNIX system, special characters (like arrows) as not displayed well.
    Must I absolutely copy my ttf files on the folder jre/lib/font server-side as mentionned here: http://download.oracle.com/javase/1.3/docs/guide/intl/addingfonts.html#adding ?

    #28402

    Try to enable debug output on the problem platform (pd4ml.enableDebugOutput()) and inspect STDOUT/server’s log. Does it try to load TTF files? Are the TTF URI correct?

    #28403

    Hi, thanks for your answer, this is an exemple of the output log when i create a PDF on production mode:

    <br /> INFO | jvm 1 | 2011/02/15 05:22:49 | version: PD4ML 370 Pro<br /> INFO | jvm 1 | 2011/02/15 05:22:49 | not yet in cache: java:fonts/pd4fonts.properties<br /> INFO | jvm 1 | 2011/02/15 05:22:49 | 'helvetica' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:49 | reject TTF lookup for: 'helvetica'<br /> INFO | jvm 1 | 2011/02/15 05:22:49 | 'aharoni' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:49 | reject TTF lookup for: 'aharoni'<br /> INFO | jvm 1 | 2011/02/15 05:22:49 | 'impact' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:49 | reject TTF lookup for: 'impact'<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | not yet in cache: file:/fonts//arialbd.ttf<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | /fonts/arialbd.ttf (No such file or directory)<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | can not find 'arial bold' at file:/fonts//arialbd.ttf<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | reject TTF lookup for: 'arial bold'<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | 'helvetica bold' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | reject TTF lookup for: 'helvetica bold'<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | 'verdana bold' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | reject TTF lookup for: 'verdana bold'<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | 'sans-serif bold' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | reject TTF lookup for: 'sans-serif bold'<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | not yet in cache: file:/fonts//arial.ttf<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | /fonts/arial.ttf (No such file or directory)<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | can not find 'arial' at file:/fonts//arial.ttf<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | reject TTF lookup for: 'arial'<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | 'verdana' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | reject TTF lookup for: 'verdana'<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | 'sans-serif' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | reject TTF lookup for: 'sans-serif'<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | not yet in cache: file:/fonts//ariali.ttf<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | /fonts/ariali.ttf (No such file or directory)<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | can not find 'arial italic' at file:/fonts//ariali.ttf<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | reject TTF lookup for: 'arial italic'<br /> INFO | jvm 1 | 2011/02/15 05:22:50 | 'helvetica italic' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | reject TTF lookup for: 'helvetica italic'<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | 'verdana italic' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | reject TTF lookup for: 'verdana italic'<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | 'sans-serif italic' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | reject TTF lookup for: 'sans-serif italic'<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | not yet in cache: file:/fonts//cour.ttf<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | /fonts/cour.ttf (No such file or directory)<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | can not find 'courier new' at file:/fonts//cour.ttf<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | reject TTF lookup for: 'courier new'<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | 'monospace' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | reject TTF lookup for: 'monospace'<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | not yet in cache: file:/fonts//courbd.ttf<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | /fonts/courbd.ttf (No such file or directory)<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | can not find 'courier new bold' at file:/fonts//courbd.ttf<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | reject TTF lookup for: 'courier new bold'<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | not yet in cache: file:/fonts//arialbi.ttf<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | /fonts/arialbi.ttf (No such file or directory)<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | can not find 'arial bold italic' at file:/fonts//arialbi.ttf<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | reject TTF lookup for: 'arial bold italic'<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | 'helvetica bold italic' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | reject TTF lookup for: 'helvetica bold italic'<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | 'verdana bold italic' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | reject TTF lookup for: 'verdana bold italic'<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | 'sans-serif bold italic' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | reject TTF lookup for: 'sans-serif bold italic'<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | 'times italic' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | reject TTF lookup for: 'times italic'<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | 'times' is not in pd4fonts.properties file<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | reject TTF lookup for: 'times'<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | not yet in cache: file:/fonts//couri.ttf<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | /fonts/couri.ttf (No such file or directory)<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | can not find 'courier new italic' at file:/fonts//couri.ttf<br /> INFO | jvm 1 | 2011/02/15 05:22:51 | reject TTF lookup for: 'courier new italic'<br />

    as you can see he tries to load fonts but he doesn’t found anything. Do you think there is a path server side problem?

    What is the mecanism used by pd4ml to get the font files ? Do you use a ClassLoader, an FileIntpuStream or something else ?
    Also, it works correctly on our development machines (windows) but not on the production server (unix).

    thanks in advance for your help,

    John

    #28404

    Please check if the pd4fonts.properties has ttf.fonts.dir entry. Remove it if any.

    #28405

    I have same issue.
    Did you resolve this issue?
    If yes then please help me to figure it out.

    Then very appreciate.

    #28406

    Please post your pd4fonts.properties file and debug output.

    #28407

    I am using pd4ml version 2.5.
    In jsp file I tried to debug using but I didn’t get any information in server log file.
    Am I doing correct way or have to do other way?
    Please help me to figure it out .

    Thanks…

Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘Deployment / Configuration issues’ is closed to new topics and replies.