Hi! I have the problem with cyrillic characters with openhtmltopdf.
I want to get PDF from html, which contains cyrillic. I use this library in servlet.
But the cyrillic simbols converted to #
I use pdfBulider in this way:
pdfBuilder
.useFastMode()
.withHtmlContent(html, "/")
.toStream(stream)
.run();
and html string contains:
<style> @font-face { font-family: "PT Sans"; src: url("https://fonts.googleapis.com/css?family=PT+Sans&subset=cyrillic"); } body { font-family: 'PT Sans', Geneva, Arial, Helvetica, sans-serif; } </style>
But it doesn't help me.
Could you help me - what is the problem?
Hi! I have the problem with cyrillic characters with openhtmltopdf.
I want to get PDF from html, which contains cyrillic. I use this library in servlet.
But the cyrillic simbols converted to #
I use pdfBulider in this way:
pdfBuilder
.useFastMode()
.withHtmlContent(html, "/")
.toStream(stream)
.run();
and html string contains:
<style> @font-face { font-family: "PT Sans"; src: url("https://fonts.googleapis.com/css?family=PT+Sans&subset=cyrillic"); } body { font-family: 'PT Sans', Geneva, Arial, Helvetica, sans-serif; } </style>But it doesn't help me.
Could you help me - what is the problem?