|
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!
|