Friday, 6 September 2013

itext html to PDF. Korean is not display

itext html to PDF. Korean is not display

I already tried to use CJK fonts. Korean string variable that contains the
Korean well when you create the PDF output.
But Korean xmlparser containing the HTML source when creating a PDF
through the Korean is not visible. How can I fix this?
<html>
<head>
<title></title>
</head>
<body>
<table>
<tr>
<td>aÇѱ¹¾îb</td>
</tr>
</table>
</body>
Document document = new Document(PageSize.A4, 50, 50, 70, 70);
PdfWrite writer = PdfWriter.getInstance(document,new
FileOutputStream("c://testPDF.pdf"));
document.open();
XMLWorkerHelper.getInstance().parseXHtml(writer, document, new
FileInputStream("c://test.html"));
document.close();
writer.close();

No comments:

Post a Comment