Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #27087

    Hi,

    I give
    ನೀವು ಹೇಗಿದ್ದೀರಿ == kannada language which is Tunga font

    and telugu, tamil and thai language and along with hebrew sometimes.

    it gives output with special characters.

    for example :: for kannada “ನೀವು ಹೇಗಿದ್ದೀರಿ”
    it generates, “ನೀವೕ ಹೇಗಿದೕದೀರಿ”
    I have used,
    pd4ml.useTTF(fontMappingFile, true);

    fontmapping.properties is path to the pd4Fonts.properties which contains all these fonts and also in system the fonts are present.

    Please help.

    Thanks in advance.

    #29894

    I hope Pd4ml team responds, since i am in need asap.
    Thank you

    #29895

    > it generates, “ನೀವೕ ಹೇಗಿದೕದೀರಿ”

    Usually that type of visual garbage is caused by an attempt to render UTF-8 document (2 bytes per CJK glyph) with a wrongly applied (default?) single byte encoding i.e. ISO 8859-1.

    Try to explicitly define UTF-8 in the document or pass the default encoding via JVM command-line params -Dfile.encoding=UTF-8

    #29896

    Hi ,
    We are facing the same issuue of special characters when text is in hebrew/Arabic/chinese in pdf where as in browser these text is shown correctly.

    We are currently on pd4ml 3.7 where we do not see this issue and we wanted to upgrade to 3.10 where we see this issue and this issue is blocking our upgrade.

    We tried with the solution suggested in this thread as shown below, but it does not seems to work.

    pd4ml.render(new StringReader(htmlStr), outputStream, new URL(baseURL),”UTF-8″)


    @PD4ML
    Team: Could you please help.its very important to fix this issue.

    Thanks in advance.

    #29897

    Try to switch debug on (pd4ml.enableDebugInfo()) and compare debug output for v3.7 and v3.10. It should list TTF fonts it loads. I assume you evaluate Pro version of PD4ML v3.10 as PD4ML Std is not capable to use TTFs and to render international scripts.

    #29898

    Thanks for the quick response.

    Yes you are right we are evaluating pro version of pd4ml v3.10.
    Is there a change from v3.7 to v3.10.6,how do we solve this issue?

    Logs while generating pdf in both the version.
    hope this helps :
    ****************************************************************
    From Logs
    v3.7 – where there is no issue :

    [log4j2] 16:11:45,274 INFO [STDOUT] [0:0:0:0:0:0:0:1] [73] [kk] version: PD4ML 370 Pro
    [log4j2] 16:11:45,537 INFO [ZKFactory] Zookeeper state change to :LOST
    [log4j2] 16:11:46,284 INFO [ZKFactory] Zookeeper state change to :SUSPENDED
    [log4j2] 16:11:47,246 INFO [STDOUT] [0:0:0:0:0:0:0:1] [73] [kk] not yet in cache: java:/content/pd4fonts.properties
    [log4j2] 16:11:47,859 INFO [ZKFactory] Zookeeper state change to :LOST
    [log4j2] 16:11:47,919 INFO [STDOUT] [0:0:0:0:0:0:0:1] [73] [kk] ‘serif’ is not in pd4fonts.properties file
    [log4j2] 16:11:47,919 INFO [STDOUT] [0:0:0:0:0:0:0:1] [73] [kk] reject TTF lookup for: ‘serif’
    [log4j2] 16:11:47,920 INFO [STDOUT] [0:0:0:0:0:0:0:1] [73] [kk] not yet in cache: java:/content/ARIALUNI.TTF
    [log4j2] 16:11:48,509 INFO [ZKFactory] Zookeeper state change to :SUSPENDED
    [log4j2] 16:11:48,748 INFO [ZKFactory] Zookeeper state change to :LOST
    [log4j2] 16:11:49,612 INFO [ZKFactory] Zookeeper state change to :SUSPENDED
    [log4j2] 16:11:49,641 INFO [STDOUT] [0:0:0:0:0:0:0:1] [73] [kk] read ‘arial unicode ms’ from java:/content/ARIALUNI.TTF
    [log4j2] 16:11:51,300 INFO [STDOUT] [0:0:0:0:0:0:0:1] [73] [kk] done in 6474ms.

    ************************************************************
    From Logs
    v3.10.6 – where we see the issue :

    [log4j2] 11:32:40,821 INFO [PD4MLHTML2PDFConverter] [0:0:0:0:0:0:0:1] [549] [kk] PD4ML Version is: 3106 Pro DMS
    [log4j2] 11:32:40,905 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] version: PD4ML 3106 Pro DMS
    [log4j2] 11:32:41,167 INFO [ZKFactory] Zookeeper state change to :LOST
    [log4j2] 11:32:41,213 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] not yet in cache: java:/content/pd4fonts.properties
    [log4j2] 11:32:41,228 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] loading java:/content/pd4fonts.properties [11ms]
    [log4j2] 11:32:41,484 INFO [ZKFactory] Zookeeper state change to :SUSPENDED
    [log4j2] 11:32:41,758 INFO [ZKFactory] Zookeeper state change to :LOST
    [log4j2] 11:32:42,204 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] ‘serif’ is not in pd4fonts.properties file
    [log4j2] 11:32:42,204 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] reject TTF lookup for: ‘serif’
    [log4j2] 11:32:42,205 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] ‘times new roman’ is not in pd4fonts.properties file
    [log4j2] 11:32:42,205 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] reject TTF lookup for: ‘times new roman’
    [log4j2] 11:32:42,205 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] ‘ms mincho’ is not in pd4fonts.properties file
    [log4j2] 11:32:42,206 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] reject TTF lookup for: ‘ms mincho’
    [log4j2] 11:32:42,206 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] ‘mingliu’ is not in pd4fonts.properties file
    [log4j2] 11:32:42,206 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] reject TTF lookup for: ‘mingliu’
    [log4j2] 11:32:42,206 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] ‘simsun’ is not in pd4fonts.properties file
    [log4j2] 11:32:42,207 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] reject TTF lookup for: ‘simsun’
    [log4j2] 11:32:42,207 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] ‘mangal’ is not in pd4fonts.properties file
    [log4j2] 11:32:42,209 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] reject TTF lookup for: ‘mangal’
    [log4j2] 11:32:42,209 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] ‘david’ is not in pd4fonts.properties file
    [log4j2] 11:32:42,209 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] reject TTF lookup for: ‘david’
    [log4j2] 11:32:42,210 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] ‘batang’ is not in pd4fonts.properties file
    [log4j2] 11:32:42,210 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] reject TTF lookup for: ‘batang’
    [log4j2] 11:32:42,210 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] ‘lucida sans regular’ is not in pd4fonts.properties file
    [log4j2] 11:32:42,212 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] reject TTF lookup for: ‘lucida sans regular’
    [log4j2] 11:32:42,212 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] ‘ms gothic’ is not in pd4fonts.properties file
    [log4j2] 11:32:42,212 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] reject TTF lookup for: ‘ms gothic’
    [log4j2] 11:32:42,213 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] ‘gulim’ is not in pd4fonts.properties file
    [log4j2] 11:32:42,213 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] reject TTF lookup for: ‘gulim’
    [log4j2] 11:32:42,213 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] ‘gulimche’ is not in pd4fonts.properties file
    [log4j2] 11:32:42,213 INFO [STDOUT] [0:0:0:0:0:0:0:1] [549] [kk] reject TTF lookup for: ‘gulimche’
    ****************************************************************

    #29899

    Hi PD4ML support team,

    Kindly help us here, as its very important for us to resolve above issue to go ahead with upgraded version.

Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.