Render Html to PDF In Chinese and Eritrean not working - Forum - Rollbase - Progress Community

Render Html to PDF In Chinese and Eritrean not working

 Forum

Render Html to PDF In Chinese and Eritrean not working

This question is answered

Hello,

I have a document template on these languages:

1. Chinese.

2. Eritrean

I wrote the templates by HTML and I marked 'render as PDF' checkBox but the output (PDF file) contain a strange symbols.

Do you have an idea how this can be resolved?

Best Regards,

Refael

This is the HTML file:

This is the PDF file:

  

Verified Answer
  • Hi Refael,

    If you are still not able to render Chinese and Eritrean in PDFs, then you will need to add the following css styling to your html template -

    font-family: Noto Sans Ethiopic, Droid Sans Fallback;

    Where  'Noto Sans Ethiopic' is used to render Eritrean and 'Droid Sans Fallback' is used to render Chinese.

    Thanks,

    Anvi

All Replies
  • Are you trying this on Rollbase Hosted Cloud or your private cloud instance? If on private cloud, have you configured the FontDirectory shared property to point to the fonts directory on your machine? Also, can u confirm if you have done the pd4ml configuration as mentioned @ pd4ml.com/.../ttf-embedding-t42.html (regarding ttf embedding)?

  • Hi Murali,

    I'm using in public cloud.

    Regards,

    Refael

  • Hi Refael,

    I can reproduce this issue on the Public Cloud. Will update you after checking what needs to be done.

  • Quick update: This has been fixed for the upcoming release.
  • Please try it out on eap.rollbase.com and let us know if it works well for you.

    thanks.

    PS: if you don't have an account email me tciot at progress.com

  • Hi Refael,

    If you are still not able to render Chinese and Eritrean in PDFs, then you will need to add the following css styling to your html template -

    font-family: Noto Sans Ethiopic, Droid Sans Fallback;

    Where  'Noto Sans Ethiopic' is used to render Eritrean and 'Droid Sans Fallback' is used to render Chinese.

    Thanks,

    Anvi