Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #27206

    we have a problem with our pdfs because of polish letters
    like in Szczepański.

    We generate our pdfs through Php calling -Djava.awt.headless=true -cp ./pd4ml.jar Pd4Cmd
    how could we fix this issue?


    now with a real account here


    In order to display glyphs, not belong to Latin-1 charset, you need to provide a reference to a TTF fonts directory (with in it) or add a fonts.jar to the classpath and point to a fonts folder in it.

    [language=java:3ens62ck]java -Djava.awt.headless=true -cp ./pd4ml.jar Pd4Cmd -ttf /work/myfonts[/language:3ens62ck]

    [language=java:3ens62ck]java -Djava.awt.headless=true -cp ./pd4ml.jar:./fonts.jar Pd4Cmd -ttf java:defaultfonts[/language:3ens62ck]

    See also:


    thanks for the quick reply

    i have this call in the eval.php
    java -Xmx512m -Djava.awt.headless=true -cp ./pd4ml.jar:./fonts.jar Pd4Cmd “file:/var/www/pd4ml/eval_3073” 800 -insets 15,15,15,15,mm -orientation PORTRAIT -out “/var/www/pd4ml/eval_3073.pdf” -ttf java:defaultfonts

    and the /var/www/pd4ml folder is like this:

    but results don’t change it’s still

    any ideas?


    What is the internal structure of your fonts.jar ? Does it have /defaultfonts root folder (as it referenced from the command-line) and does the folder contain ?


    no it’s plain

    in the root of the jar
    how is -ttf java:defaultfonts supposed to be?
    or can i remove it?


    great it works! thank you very much!


    Glad it works for you!

    If the fonts.jar structure is plain, the parameter should be -ttf java:.

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

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.