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

    Hi
    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?

    #30179

    now with a real account here
    greets

    #30180

    In order to display glyphs, not belong to Latin-1 charset, you need to provide a reference to a TTF fonts directory (with pd4fonts.properties 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: http://pd4ml.com/reference.htm#7.1

    #30181

    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:
    https://www.dropbox.com/s/9qi4a14xj9nxxj5/Screenshot%202018-12-11%2013.34.03.png?dl=0

    but results don’t change it’s still
    https://www.dropbox.com/s/4drwuyy9wle6m2s/Screenshot%202018-12-11%2013.35.00.png?dl=0

    any ideas?

    #30182

    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 pd4fonts.properties ?

    #30183

    hi
    no it’s plain
    https://www.dropbox.com/s/6lgv5p3hhng4l83/Screenshot%202018-12-11%2013.47.25.png?dl=0

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

    #30184

    great it works! thank you very much!

    #30185

    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.