Any solution to display arabic text. I am facing the same problem. The characters are coming as ????. Although in my case the data I am passing through the StringReader as I am receiving the data from a WebService.
By default PD4ML converts to PDF characters, belong to Latin-1 charset only using built-in Adobe fonts (Helvetica, Times New Roman and Courier New). In order to output national or special characters you would need to configure and utilize TTF embedding feature. See:
If I execute the below codes i am getting PDF converter UI. It is not generating pd4fonts.properties and pd4browser.properties.
Please help on this.
create fonts/ directory (i.e /path/to/my/fonts/) and copy needed TTFs into it.
run pd4font.properties generation command
java -jar pd4ml.jar -configure.fonts /path/to/my/fonts/
(as a result it should produce /path/to/my/fonts/pd4font.properties)
reference /path/to/my/fonts/ directory from your Java/JSP/… code.
If I execute the below codes i am getting PDF converter UI. It is not generating pd4fonts.properties and pd4browser.properties.
Please help on this.
create fonts/ directory (i.e /path/to/my/fonts/) and copy needed TTFs into it.
run pd4font.properties generation command
java -jar pd4ml.jar -configure.fonts /path/to/my/fonts/
(as a result it should produce /path/to/my/fonts/pd4font.properties)
reference /path/to/my/fonts/ directory from your Java/JSP/… code.
unpack it and place fonts.jar to the classpath of your application (or to lib/ folder if any).
Refer the fonts this way:
pd4ml.useTTF(“java:fonts”, true);
And make sure the HTML has a correct meta charset directive.
If you are interested to get a support from us, please provide more details about the issue you faced with. There is a variety of reasons why some fonts are not rendered correctly.