Forum Replies Created
-
AuthorPosts
-
in reply to: PDF rendering issue with display:block January 30, 2019 at 11:05#29423
Try PD4ML v4: https://github.com/zxfr/pd4ml-examples/
in reply to: PDF rendering issue with display:inline January 29, 2019 at 16:15#30155Give a try to PD4ML v4: https://github.com/zxfr/pd4ml-examples/
in reply to: Hanging Threads! January 22, 2019 at 11:52#30163Please use the most recent PD4ML v3.10.9. There is no practical benefits to use that old version as v1.0
in reply to: Unicode character not displayed, character missing in font January 18, 2019 at 12:46#30198I reviewed a number of TTFs with “Character Map” Windows utility, and it seems #9723 (U+25FB) glyph is quite rare in TTFs. I have only found it in DejaVu family of fonts.
So try to modify the font-family directive like that:
from
“font-family=Verdana,Geneva,Arial,Helvetica,sans-serif”
to
“font-family: Verdana,Geneva,’DejaVu Sans’,Arial,Helvetica,sans-serif”(Make sure DejaVu font is installed and indexed, and do not forget to substitute ‘=’ with ‘:’ in the property definition)
in reply to: Issue after upgrading to new version of PD4ML Jar "3.9.9fx1" January 15, 2019 at 10:22#30194I would recommend to upgrade to the just-released v3.10.9. Recently we addressed some CJK rendering issues (especially with 4byte-encoded characters).
It is difficult to say, why it reports
java.lang.NoSuchMethodError: org.zefer.pd4ml.PD4Document.append()The method is there since a while and we did not disable it…
in reply to: Please help ASAP! Corrupted Chinese Character(4bytes UTF-8) January 14, 2019 at 15:00#30192We addressed the issue again and found our implementation of the feature was not full. The just released v3.10.9 supports the 4bytes encoding more consistent way.
in reply to: Please help ASAP! Corrupted Chinese Character(4bytes UTF-8) January 9, 2019 at 13:55#30191PD4ML v3.9.9 does implement 4-bytes characters support, however the next 3.9.9fx1 and newer versions are recommended (as they fix few bugs).
The feature is very sensitive to the configured TTF fonts: the fonts should define the used 4-byte glyphs and the font names should be explicitly referenced from the HTML.
in reply to: Facing different rendering issues after upgrading PD4ML lib December 27, 2018 at 16:29#30188In the actual version the fallback font list is like that:
private static String[] serifFallback = new String[] { "Times New Roman", "MS Mincho", "MingLiU", "SimSun", "Mangal", "David", "Batang", "Lucida Sans Regular", "MS Gothic", "Gulim", "GulimChe", "Arial Unicode MS", }; private static String[] sansFallback = new String[] { "Arial", "MS Gothic", "Yu Gothic", "MingLiU", "SimSun", "Mangal", "David", "Gulim", "Lucida Sans Regular", "MS Mincho", "Batang", "GulimChe", "Arial Unicode MS", }; private static String[] monoFallback = new String[] { "Courier New", "MS Gothic", "MingLiU", "MingLiU-ExtB", "MingLiU_HKSCS", "MingLiU_HKSCS-ExtB", "SimSun", "Mangal", "David", "GulimChe", "Lucida Sans Regular", "MS Mincho", "Batang", "Gulim", "Arial Unicode MS", };In the most recent PD4ML version “Arial Unicode MS” is added as the “last resort” font.
in reply to: Problem with polish Letters December 11, 2018 at 12:54#30185Glad it works for you!
If the fonts.jar structure is plain, the parameter should be -ttf java:.
in reply to: Problem with polish Letters December 11, 2018 at 12:40#30182What 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 ?
in reply to: Problem with polish Letters December 11, 2018 at 11:03#30180In 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.
java -Djava.awt.headless=true -cp ./pd4ml.jar Pd4Cmd -ttf /work/myfonts java -Djava.awt.headless=true -cp ./pd4ml.jar:./fonts.jar Pd4Cmd -ttf java:defaultfonts
See also: https://pd4ml.com/reference.htm#7.1
in reply to: setHtmlTemplate Method not working November 30, 2018 at 13:36#30156Hi!
1. Make sure you use not Std, but Pro (or a derived Volume) version of PD4ML
2. Do you call pd4ml.setPageHeader(pdfHEADER); afterwards?in reply to: Issues with configure.fonts November 30, 2018 at 13:33#30165Hi Florian! The strange results you got have no good explanation. The command line should produce pd4fonts.properties file (not .fonts).
Could you please try something like that:
java -jar pd4ml.jar -configure.fonts c:/windows/fonts c:/tmp
?It should produce the .properties file for the standard Windows fonts in c:/tmp (assuming the target directory exists)
in reply to: Odd problem with a UTF-8 dash/minus character November 30, 2018 at 13:25#30177Sorry for the delay with the reply and thanks a lot for the very useful info you provided. Now we are trying to reproduce the issue to find a workaround (to avoid the need in the env setting)…
in reply to: margin value in percentage November 16, 2018 at 17:03#30166Percent values for left and right margins are going to be supported with forthcoming PD4ML v3.10.8 release. Or take a look to the actual snapshots of PD4ML v4.
-
AuthorPosts
