-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
using withHtmlContent method result #### in Arabic #53
Comments
Hi @yalmuhaidib builder.withHtmlContent(htmlContent, "file:///absolute/path/to/font/dummy.html"); |
hi! Same problem with greeks i can not understand the content of the dummy.html thanx |
Solved!
inside htmldata and leave the second arg of withHtmlContent "" |
Hi @JimTheod <style>
@font-face {
font-family: 'cjk';
src: url('Calibri.ttf');
}
body
{
font-family:cjk;
}
</style> and builder.withHtmlContent(htmlContent, "file:///file:///d:/deleme/java/webServices/WebServicesTools/resources/dummy.htm"); I've tested this, but on a mac, maybe it is not working in Windows? |
Thanx for quiq reply! Yes you are right if i use
and then set only the path works fine
|
@danfickle , @JimTheod : This seems to be solved. No reason to keep the issue open. |
I'm using thymeleaf to process the HTML page that would be then passed to openhtmltopdf to generate a PDF with Arabic content.
the issue if I'm trying to generate using
withHtmlContent(String html, String baseUri)
then:
####
for any Arabic Content.baseUri
and how I should set it?withUri(String uri)
, Arabic is rendered, the issue with this is I need to process the HTML to be dynamic "generate a purchase order"check below sample code:
The text was updated successfully, but these errors were encountered: