PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) Troubleshooting Problem in displaying Japanese characters

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26318

    Hi,
    I am having an HTML file with contents as both English and Japanese characters. The charset of the page is set to UTF-8 in a meta tag. This page gets displayed properly in the browser. When I say ‘properly’, I mean that both the Japanese & English characters get displayed correctly. But, when I convert this page to PDF using PD4ML pro, the generated PDF does not display the page properly.

    The code snippet used to generate is

    FileOutputStream fos = new FileOutputStream(outFile);
    PD4ML pd4ml = new PD4ML();
    pd4ml.setPageInsets(new Insets(30, 40, 30, 20));
    pd4ml.setHtmlWidth(950);
    pd4ml.adjustHtmlWidth();
    pd4ml.enableDebugInfo();
    pd4ml.render(“file:” + inFile, fos);

    Any help will be appreciated!

    #27803

    The following information should help:
    pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html

    #27804

    The information in that link is helpful. Thank you.

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

The forum ‘Troubleshooting’ is closed to new topics and replies.