Hi,
if we try to convert attached htmlfile to pdf using aspose.pdf for java 19.4, we have problems with umlauts and special characters. On our windows server, words contains umlauts are not rendered at all. on our linux server, we get a placeholder.
original html:
grafik.png (4.5 KB)
d59cd505-cee2-453b-874f-e1a5c78ca443 beschlusstext.zip (726 Bytes)
rendered on windows:
grafik.png (7.8 KB)
rendered on linux:
grafik.png (15.7 KB)
HtmlLoadOptions htmlOptions = new HtmlLoadOptions();
htmlOptions.setInputEncoding(“UTF-8”);
htmlOptions.setWarningHandler(new HtmlPdfConverterWarnings());
Document pdfDocument = new Document(“c:/temp/input.html”,htmlOptions);
pdfDocument.save(“c:/temp/output.pdf”);
HtmlPdfConverterWarnings overrides warning. Within warning, we log the warningmessage and return continue.
Kind regards