HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › PD4ML Tips & Tricks › TTF embedding
- This topic has 26 replies, 3 voices, and was last updated Mar 26, 2019
17:04:14 byAnonymous.
-
AuthorPosts
-
September 12, 2013 at 11:49#27312
Try to change
<pd4ml:usettf>tag to
<pd4ml:usettf from="java:fonts"/>September 14, 2013 at 05:34#27313i tried this tag but still the problem exist and the Arabic character appear as ?????
September 14, 2013 at 06:33#27314@Mohamed Fayek wrote:
i tried this tag but still the problem exist and the Arabic character appear as ?????
September 17, 2013 at 09:42#27315Please publish your updated JSP and a sample of its debug output.
June 5, 2014 at 05:38#27316Any 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.
June 23, 2014 at 08:40#27317By 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:
https://pd4ml.com/reference.htm#7.1
pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html
https://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htmJuly 12, 2016 at 13:57#27318If 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.July 12, 2016 at 14:02#27319@PegaDev wrote:
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.Here is the original command
java -jar C:tomcatwebappsprwebWEB-INFlib/pd4ml.jar -configure.fonts C:tomcatFonts
August 8, 2016 at 13:44December 13, 2017 at 14:08#27321ße
March 26, 2019 at 15:51#27323@PD4ML wrote:
Please try to substitute your fonts jar with this one:
https://pd4ml.com/i/allfonts.zip (34 MB!)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.
Does it solve the problem?
No it does not solve the problem
March 26, 2019 at 17:04#27322No it does not solve the problem
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.
-
AuthorPosts
The forum ‘PD4ML Tips & Tricks’ is closed to new topics and replies.
