#1 2011-11-30 05:35:02

jackiekuang
Member
Registered: 2011-11-30
Posts: 2

Unicode program

I try to modify the htm2pdf demo to test if the unicode words support, but failed.
There are only 2 modifications on the html file, some unicode words(Chinese) input on the html body part, and <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> for header part, the unicode content can be displayed on the THtmlViewer, this works, and the PDF was generated as well, but the unicode words can NOT be displayed correctly.

Anybody help me? Thanks in advance!

Offline

#2 2011-11-30 09:10:11

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,490
Website

Re: Unicode program

This demo was tested only with Win1252 charset.

In our SynPdf library, there is no font fall-back - see http://msdn.microsoft.com/en-us/library … s.85).aspx - which is quite complex to implement.
That is, you must select a font which contains all displayed characters.

Offline

#3 2011-11-30 11:31:16

jackiekuang
Member
Registered: 2011-11-30
Posts: 2

Re: Unicode program

Hi ab,

Thanks for your reply.

But I still don't know how to fix the issue, I am sorry I don't know so much about the SynPdf.

Could you please tell me what exactly I should do?

Offline

#4 2011-11-30 12:31:24

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,490
Website

Re: Unicode program

You may try to specify the font name in your html which is known to contain all Chinese characters.

Offline

Board footer

Powered by FluxBB