Forum Replies Created

Viewing 15 posts - 3,451 through 3,465 (of 4,246 total)
  • Author
    Posts
  • in reply to: HTML/CSS rendering issues
    #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
    #30095

    Sounds 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 com

    in reply to: Rendering Chinese characters problem Question Mark
    #30060

    Take a look to the TTF fallback tables on the page:
    http://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm

    In 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
    #30050

    Hi,

    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/pdffont

    sagar3mac1221: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/pdffont

    bash-$> 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 2017

    sagar3mac1221:sagar:clarity trunk:/cawork/pdf/pdffont
    bash-$>
    ==== Mac cmd prompt out put ends ==================

    #30006

    Hi 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
    #27167

    java.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
    #27168

    java.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
    #30096

    Which 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
    #30051

    Hi,

    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/pdffont

    sagar3mac1221: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/pdffont

    bash-$> 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 2017

    sagar3mac1221: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”); // current

    pd4ml.setDefaultTTFs(“NotoSansCJK”, “Arial”, “Courier New”); //Proposed??

    Please let me know if you need any more information.

    Thanks,
    Parag Sagar

    in reply to: Free CJK Fonts
    #30052

    @PD4ML – Please reply

    THX!

    in reply to: General questions / FAQ
    #27164

    Hi,

    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
    #27165

    Hi 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
    #30094

    Unfortunately 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 ?
    #29362

    i 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 ?
    #29363

    border-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.

Viewing 15 posts - 3,451 through 3,465 (of 4,246 total)