Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Mangal font support
    #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

    in reply to: Mangal font support
    #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

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