Forum Replies Created
-
AuthorPosts
-
in reply to: HTML/CSS rendering issues July 24, 2017 at 13:30#27166
Hello,
I am using PD4ML pro, mathematical characters (≤ for example) is displayed as question mark in the generated PDF.
The JSP already has the meta tag
But it looks like PD4ML is ignoring it.
Tried adding all the fonts and that also didn’t work.Any ideas?
in reply to: mathematical characters are not displaying correctly July 24, 2017 at 16:51#30095Sounds like needed TTF fonts are not embedded to PDF or the TTFs do not define the mathematical character glyphs.
Please send a sample HTML and its resulting PDF to support pd4ml comin reply to: Rendering Chinese characters problem Question Mark July 24, 2017 at 17:01#30060Take a look to the TTF fallback tables on the page:
http://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htmIn principle you may use the font names (ignoring their original meanings) to define a chain of CJK TTF fonts, to be used to find a particular glyph, missing in the main font:
[language=java:1nn401ks]MS Gothic=cjk_font_option1.ttf
MingLiU=cjk_font_option2.ttf
SimSun=cjk_font_option3.ttf
Mangal=cjk_font_option4.ttf
David=cjk_font_option5.ttf
Gulim=cjk_font_option6.ttf [/language:1nn401ks]in reply to: Free CJK Fonts July 31, 2017 at 23:52#30050Hi,
I have downloaded NOTO CJK OTF fonts (https://www.google.com/get/noto/help/cjk/) and converted into TTF from https://convertio.co/.
But when i was using the following command the pd4fonts.properties was not generating any entries for the fonts.
==== Mac cmd prompt out put start ==================
sagar3mac1221:sagar:clarity trunk:/cawork/pdf/pdffont
bash-$> pwd
/cawork/pdf/pdffontsagar3mac1221:sagar:clarity trunk:/cawork/pdf/pdffont
bash-$> ls /fonts
NotoSansCJKjp-Black.ttf NotoSansCJKkr-Bold.ttf NotoSansCJKsc-DemiLight.ttf NotoSansMonoCJKjp-Regular.ttf
NotoSansCJKjp-Bold.ttf NotoSansCJKkr-DemiLight.ttf NotoSansCJKtc-Black.ttf NotoSansMonoCJKkr-Bold.ttf
NotoSansCJKjp-DemiLight.ttf NotoSansCJKkr-Light.ttf NotoSansCJKtc-Bold.ttf NotoSansMonoCJKkr-Regular.ttf
NotoSansCJKjp-Light.ttf NotoSansCJKkr-Medium.ttf NotoSansCJKtc-DemiLight.ttf NotoSansMonoCJKsc-Bold.ttf
NotoSansCJKjp-Medium.ttf NotoSansCJKkr-Regular.ttf NotoSansCJKtc-Light.ttf NotoSansMonoCJKsc-Regular.ttf
NotoSansCJKjp-Regular.ttf NotoSansCJKkr-Thin.ttf NotoSansCJKtc-Medium.ttf NotoSansMonoCJKtc-Bold.ttf
NotoSansCJKjp-Thin.ttf NotoSansCJKsc-Black.ttf NotoSansCJKtc-Thin.ttf NotoSansMonoCJKtc-Regular.ttf
NotoSansCJKkr-Black.ttf NotoSansCJKsc-Bold.ttf NotoSansMonoCJKjp-Bold.ttf pd4fonts.properties
sagar3mac1221:sagar:clarity trunk:/cawork/pdf/pdffontbash-$> java -jar pd4ml.jar -configure.fonts /cawork/pdf/pdffont/fonts/
bash-$> cat fonts/pd4fonts.properties
#this is an autogenerated file. please remove manually any references to copyrighted fonts
#Mon Jul 31 15:35:50 PDT 2017sagar3mac1221:sagar:clarity trunk:/cawork/pdf/pdffont
bash-$>
==== Mac cmd prompt out put ends ==================in reply to: Embed TTFs – getting does not seem to be TTF error message August 1, 2017 at 18:09#30006Hi there,
I also encounter the (‘CFF’ glyph table instead of ‘loca’) message when using an otf font file (and version 3.10.0 of pd4ml). However I am able to instantiate a Font object and display / render some text without problems (in my rather simple test cases though).
-> do you happen to have / know if there is further information available on why this happens here? Maybe something related to the underlying pdf-creation-layer/lib?
Best regards and have a nice day
in reply to: General questions / FAQ August 9, 2017 at 19:44#27167java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3236)
at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113)
at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at java.io.BufferedWriter.flush(BufferedWriter.java:254)
at java.io.PrintWriter.flush(PrintWriter.java:320)
at org.zefer.pd4ml.pdf.b.o00000(Unknown Source)
at org.zefer.pd4ml.pdf.e.oO0000(Unknown Source)
at org.zefer.pd4ml.pdf.e.ÒO0000(Unknown Source)
at org.zefer.pd4ml.pdf.PD4Device.startNewPage(Unknown Source)
at org.zefer.pd4ml.PD4ML.super(Unknown Source)
at org.zefer.pd4ml.PD4ML.render(Unknown Source)in reply to: HTML/CSS rendering issues August 9, 2017 at 21:26#27168java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3236)
at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113)
at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at java.io.BufferedWriter.flush(BufferedWriter.java:254)
at java.io.PrintWriter.flush(PrintWriter.java:320)
at org.zefer.pd4ml.pdf.b.o00000(Unknown Source)
at org.zefer.pd4ml.pdf.e.oO0000(Unknown Source)
at org.zefer.pd4ml.pdf.e.ÒO0000(Unknown Source)
at org.zefer.pd4ml.pdf.PD4Device.startNewPage(Unknown Source)
at org.zefer.pd4ml.PD4ML.super(Unknown Source)I just want to know how can i fix it and in which release this has been fixed
in reply to: OutOfMemoryError while converting html to pdf August 10, 2017 at 09:05#30096Which PD4ML version do you use?
On which platform?
How big is source HTML?
Are there any images in the doc with big dimensions?
Did you override the default JVM memory heap size?in reply to: Free CJK Fonts August 11, 2017 at 19:09#30051Hi,
I have downloaded NOTO CJK OTF fonts (https://www.google.com/get/noto/help/cjk/) and converted into TTF from https://convertio.co/.
But when i was using the following command the pd4fonts.properties was not generating any entries for the fonts.
==== Mac cmd prompt out put start ==================
sagar3mac1221:sagar:clarity trunk:/cawork/pdf/pdffont
bash-$> pwd
/cawork/pdf/pdffontsagar3mac1221:sagar:clarity trunk:/cawork/pdf/pdffont
bash-$> ls /fonts
NotoSansCJKjp-Black.ttf NotoSansCJKkr-Bold.ttf NotoSansCJKsc-DemiLight.ttf NotoSansMonoCJKjp-Regular.ttf
NotoSansCJKjp-Bold.ttf NotoSansCJKkr-DemiLight.ttf NotoSansCJKtc-Black.ttf NotoSansMonoCJKkr-Bold.ttf
NotoSansCJKjp-DemiLight.ttf NotoSansCJKkr-Light.ttf NotoSansCJKtc-Bold.ttf NotoSansMonoCJKkr-Regular.ttf
NotoSansCJKjp-Light.ttf NotoSansCJKkr-Medium.ttf NotoSansCJKtc-DemiLight.ttf NotoSansMonoCJKsc-Bold.ttf
NotoSansCJKjp-Medium.ttf NotoSansCJKkr-Regular.ttf NotoSansCJKtc-Light.ttf NotoSansMonoCJKsc-Regular.ttf
NotoSansCJKjp-Regular.ttf NotoSansCJKkr-Thin.ttf NotoSansCJKtc-Medium.ttf NotoSansMonoCJKtc-Bold.ttf
NotoSansCJKjp-Thin.ttf NotoSansCJKsc-Black.ttf NotoSansCJKtc-Thin.ttf NotoSansMonoCJKtc-Regular.ttf
NotoSansCJKkr-Black.ttf NotoSansCJKsc-Bold.ttf NotoSansMonoCJKjp-Bold.ttf pd4fonts.properties
sagar3mac1221:sagar:clarity trunk:/cawork/pdf/pdffontbash-$> java -jar pd4ml.jar -configure.fonts /cawork/pdf/pdffont/fonts/
bash-$> cat fonts/pd4fonts.properties
#this is an autogenerated file. please remove manually any references to copyrighted fonts
#Mon Jul 31 15:35:50 PDT 2017sagar3mac1221:sagar:clarity trunk:/cawork/pdf/pdffont
bash-$>
==== Mac cmd prompt out put ends ==================Question 1: Why the -configure.fonts utility is not working with the noto ttf fonts and not generating pd4fonts.properties
Question 2: Is there anyway I can get some DEBUG information while running -configure.fonts utility.
Questions 3: Eventually, i need a JAR file which I can place in my app lib folder to load these fonts for PD4ML, Can i just get a jar file with CJK font i can directly use in my java code to generate PDF ?
Question 4: Assuming , somehow get the noto jar with ttf embedding , what should be the right replacement for the java method arguments?
pd4ml.setDefaultTTFs(“Times New Roman”, “Arial”, “Courier New”); // currentpd4ml.setDefaultTTFs(“NotoSansCJK”, “Arial”, “Courier New”); //Proposed??
Please let me know if you need any more information.
Thanks,
Parag Sagarin reply to: Free CJK Fonts August 11, 2017 at 19:11in reply to: General questions / FAQ August 14, 2017 at 08:13#27164Hi,
PD4ML Probe is giving me different results.
the tab ‘PD4ML Java’ is giving me a different result as the one in the tab ‘Preview in Browser’, which is the correct one.
What could be the reason?
in reply to: HTML/CSS rendering issues August 14, 2017 at 08:40#27165Hi Why am i getting different results?
Pdm4 shows a different result as the preview in Browser (which is the correct one)
Check this htm file (in sample.zip)
in reply to: different result in PDM4 Probe August 23, 2017 at 08:16#30094Unfortunately you did not provide an exact description what does not match in the layouts. I could see only a difference in font family used to display the text.
It is caused by an unsupported (by current PD4ML v3) line height definition construct in CSS font property:
font: 12px/18px Arial, Helvetica, sans-serif;
As a workaround you can change the styles to something like that:
font: 12px Arial, Helvetica, sans-serif; line-height: 18px;in reply to: border-radius is supported in pd4ml ? August 28, 2017 at 14:04#29362i am waiting too. is this going to happen soon or i may find a better tool to use?
in reply to: border-radius is supported in pd4ml ? August 28, 2017 at 14:09#29363border-radius is not going to be supported in the current PD4ML v3.x
It is a feature of forthcoming PD4ML v4, whose release is expected in ~ one month.
-
AuthorPosts