Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #29640

    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.

    #29639

    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

    #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 Sinha

    #29637

    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.

    #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

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.