Hi,
We are requirement for converting HTML to PDF, we are using Aspose words 10.8.0 version of Java for this purpose.
The Html content contains, Japanese and other language characters,
When we use OTF Fonts and convert HTML to PDF, the PDF size grows exponentially, as i think the OTF Fonts are getting embedded in the PDF,
This doesnot happen if we convert HTML to PDF using TTF Fonts ,
So we want to use OTF Fonts for Japanese and TTF for English languauge, we are specifying multiple Font directories, one of folder contains TTF fonts (This doesnot have Japanese fonts) and other OTF fonts (This has only OTF Japanese fonts).
When we execute the program, if the first location is TTF Font location, Then japanese charcters are not rendered, if i change the order then only OTF Fonts are used.
I have 2 questions
- Is there is way to Load both TTF & OTF fonts and use respectively or
- Can we skip embedding of OTF Fonts, to avoid drastic increase in PDF size
Attached Sample Test program and Input HTML.
Please suggest