Xportability / css-to-pdf

Convert any HTML page or region to PDF - supports CSS, SVG, embedded XML objects, and more..
http://www.cloudformatter.com/CSS2Pdf
207 stars 77 forks source link

css2pdf can't Convert chinese utf8 html to pdf #35

Closed AndyXGWang closed 8 years ago

AndyXGWang commented 8 years ago

Hi

I have a question is when i convert a Chinese website html to pdf and pdf can generate successful but the content with Chinese was blank..

Could you kindly help on that? Website Url: http://www.wangfz.com/archives/2957 (in chinese) Div class = content Thanks Andy

AndyXGWang commented 8 years ago

issue fixed since font-family: FangSong.... And I don't know why support this font only?

kbrown01 commented 8 years ago

The server engine has many fonts but not every font in the world. They need to be installed on the server where the content is formatted to PDF. If you have particular needs for certain fonts, you can ask us and we can see if we have access to use it.

AndyXGWang commented 8 years ago

Hi Kbrown

thanks for your kindly feedback, currently we are using "Segoe UI" font as default. Could you kindly try to install this font on your server? :+1:

and following as option. "Lucida Grande", Helvetica,Arial, "Microsoft YaHei", FreeSans,Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3" ,FontAwesome,sans-serif

Best Regards Andy

kbrown01 commented 8 years ago

editcontent.pdf I have added Segoe UI – Normal, Bold, Italic and Bold-Italic

Sample attached.

Kevin

From: AndyXGWang [mailto:notifications@github.com] Sent: Thursday, August 18, 2016 6:59 PM To: Xportability/css-to-pdf css-to-pdf@noreply.github.com Cc: kbrown01 kevin.brown@xportability.com; State change state_change@noreply.github.com Subject: Re: [Xportability/css-to-pdf] css2pdf can't Convert chinese utf8 html to pdf (#35)

Hi Kbrown

thanks for your kindly feedback, currently we are using "Segoe UI" font as default. Could you kindly try to install this font on your server? 👍

and following as option. "Lucida Grande", Helvetica,Arial, "Microsoft YaHei", FreeSans,Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3" ,FontAwesome,sans-serif

Best Regards Andy

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Xportability/css-to-pdf/issues/35#issuecomment-240908118 , or mute the thread https://github.com/notifications/unsubscribe-auth/AAsJo8kakS0Jchbji4dp_QpZWSN35cEEks5qhQ3tgaJpZM4JmFTK . https://github.com/notifications/beacon/AAsJo6wgpdAktMQ_ppRhvFQQu1RJZ1WZks5qhQ3tgaJpZM4JmFTK.gif