PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Mangal font support
   PostPosted: 14 Jan 2015, 17:06 
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


  Subject: Re: Mangal font support
   PostPosted: 12 Feb 2015, 19:20 
PD4ML 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.


  Subject: Re: Mangal font support
   PostPosted: 25 Feb 2016, 07:01 
Hi,

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 sinha


  Subject: Re: Mangal font support
   PostPosted: 25 Feb 2016, 07:03 
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 Sinha


  Subject: Re: Mangal font support
   PostPosted: 04 Mar 2016, 17:44 
The 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.


  Subject: Re: Mangal font support
   PostPosted: 04 Mar 2016, 17:48 
> 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


  Subject: Re: Mangal font support
   PostPosted: 21 Nov 2019, 08:43 
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


  Subject: Re: Mangal font support
   PostPosted: 29 Nov 2019, 10:58 
Thanks for the sharing.


  Subject: Re: Mangal font support
   PostPosted: 16 Oct 2020, 10:18 
Is there any update on this. Does the latest versions support Mangal Font.


  Subject: Re: Mangal font support
   PostPosted: 16 Oct 2020, 11:31 
There is no problem with Mangal font itself. The issue is caused by Hindi ligaturizing. In the most recent v4.0.9fx2 snapshot build we added the basic ligaturizer and currently are in process of refining it. After it is finished, we'll copy the code also to PD4ML v3 branch.



[Reply]     [ 12 posts ]  Go to page 1, 2  Next

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share