Forum Replies Created

Viewing 15 posts - 16 through 30 (of 1,410 total)
  • Author
    Posts
  • in reply to: PDF rendering issue with display:block
    in reply to: PDF rendering issue with display:inline
    in reply to: Hanging Threads!
    #30163

    Please 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
    #30198

    I 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"
    #30194

    I 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)
    #30192

    We 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)
    #30191

    PD4ML 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
    #30188

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

    Glad it works for you!

    If the fonts.jar structure is plain, the parameter should be -ttf java:.

    in reply to: Problem with polish Letters
    #30182

    What 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
    #30180

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

    Hi!

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

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

    Sorry 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
    #30166

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

Viewing 15 posts - 16 through 30 (of 1,410 total)