PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Problem in displaying Japanese characters
   PostPosted: 22 Jan 2010, 08:57 
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!


  Subject: Re: Problem in displaying Japanese characters
   PostPosted: 22 Jan 2010, 13:17 
The following information should help:
pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html


  Subject: Re: Problem in displaying Japanese characters
   PostPosted: 31 May 2010, 23:17 
The information in that link is helpful. Thank you.


Last bumped by Anonymous on 31 May 2010, 23:17.



[Reply]     [ 3 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share