HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Mangal font support
- This topic has 5 replies, 4 voices, and was last updated Mar 04, 2016
15:48:16 byAnonymous.
-
AuthorPosts
-
January 14, 2015 at 15:06#26977
I am trying to convert hindi html into pdf using code
pd4ml.useTTF(“java:font”, true);
pd4ml.setDefaultTTFs(“Mangal”, “Times New Roman”, “Arial”);
pd4ml.render(url, fos);But my input is : क्रम संख्या
and output is : करम सखयाPlease help
February 12, 2015 at 17:20#29640PD4ML does not support a ligaturizing of Hindi fonts.
If you point us to a good algorithm, which describes it, we’ll implement it on our code.
February 25, 2016 at 05:01#29639Hi,
I am also facing issues related to rendering hindi text in PDF .
PFB the code snippet : htmlString is some hindi text
It generates some other fonts or ?? in the PDF.
ByteArrayOutputStream out = new ByteArrayOutputStream(10240);
StringReader isr = new StringReader(htmlString);
pd4ml.render(isr, out, new URL(urlBase), IEncoding.STRING_ENCODING);Could you please let me know the configuration needed for the same.
Regards,
Ranjana sinhaFebruary 25, 2016 at 05:03#29638@abhitriv wrote:
I am trying to convert hindi html into pdf using code
pd4ml.useTTF(“java:font”, true);
pd4ml.setDefaultTTFs(“Mangal”, “Times New Roman”, “Arial”);
pd4ml.render(url, fos);But my input is : क्रम संख्या
and output is : करम सखयाPlease help
Hi,
Could you please share more configuration details. With my code it is not able to comprehend hindi font at all.
Regards,
Ranjana SinhaMarch 4, 2016 at 15:44#29637The issue is known. PD4ML does not implement a ligaturizing for Indic languages as we have found neither good tech description of the algorithm nor a reference implementation.
If you can point us to good info sources – we’ll be happy to implement and to include it to PD4ML.
March 4, 2016 at 15:48#29636> Could you please share more configuration details. With my code it is not able to comprehend hindi font at all.
By default PD4ML converts to PDF characters, belong to Latin-1 charset only using built-in Adobe fonts (Helvetica, Times New Roman and Courier New). In order to output national or special characters you would need to configure and utilize TTF embedding feature of PD4ML Pro. See:
http://pd4ml.com/reference.htm#7.1
pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html
http://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm -
AuthorPosts
The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.
