I'm using iText2.0.8 to generate PDF files.
In brief here's what the code looks like:
FileOutputStream fOut = new FileOutputStream(fileFullPath);
ITextRenderer renderer = new ITextRenderer();
renderer.setDocumentFromString(str); //str is HTML fetched from a velocity template
renderer.layout();
renderer.createPDF(fOut);
fOut.close();
This works fine. However, when I have Russian characters, they simply show up 'blank' in the PDF. I tried to convert the fetched HTML string to UTF-8 but then the Russian Characters started to show up gibberish.
Does anyone know a way around this?