I'm using FlyingSaucer (R8pre2 version) to convert an XHTML into PDF.
The HTML has Chinese characters and are using MS Mincho fonts.
The document was converted, but all the Chinese characters are missing on the converted PDF.
Any idea how to resolve this problem?
Code:
OutputStream os = new FileOutputStream("output.pdf");
String inputFile = "input.html";
String url = new File(inputFile).toURI().toURL().toString();
ITextRenderer renderer = new ITextRenderer();
renderer.setDocument(url);
renderer.layout();
renderer.createPDF(os);
os.close();