23
Views
2
Comments
[Html2PdfConverter] Generated PDF cannot show Chinese character
html2pdfconverter
Web icon
Forge asset by Guilherme Pereira
Application Type
Traditional Web

I tried to generate pdf with Chinese but it turns out to show the square blocks.

The html code includes <meta charset="UTF-8"> and still the blocks.


Any thing can do to fix the locale/ language problem?


Screenshot 2023-03-14 175931.png
2024-12-10 04-40-04
Gitansh Anand

Hi Jocelyn, Give this Forge component a try: Reactive Html2Pdf Js. I did a basic test with some Chinese characters and they were printed.

I am adding an OML with the implementation of the component.

Thanks
Gitansh Anand

Test.oml
UserImage.jpg
Jocelyn

Hi @Gitansh Anand, thanks for your suggestion.

However, Html2PdfConverter is so perfect for generating the pdf with image but only missing out the Chinese character.  I have tried the Reactive Html2Pdf Js and found that Chinese characters can be shown but the pdf file did not include the image.

Thanks anyway

Jocelyn

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.