hi,
i am using PdfFormatProvider in my application,Pdffilesexporteddisplay correctlyin English, but the Chinesecan notdisplay correctly, how should Ido?
please help!
thanks.
3 Answers, 1 is accepted
0
Ivailo Karamanolev
Telerik team
answered on 10 May 2011, 03:10 PM
Hello liu,
We currently do not support Chinese in PDF files. This is due to the fact that we do not support font embedding in PDF, as this is very heavy-weight under Silverlight and the PDF specification doesn't mention standard fonts including Chinese characters.
All the best,
Ivailo
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
I am using this code snippet for exporting a Chinese word document to Pdf.
PdfFormatProvider pdfprovider = new PdfFormatProvider();
SaveFileDialog savedialog = new SaveFileDialog();
savedialog.DefaultExt = ".rtf";
savedialog.Filter = "PDF Files (*.pdf)|*.pdf";
bool? dialogresult = savedialog.ShowDialog();
if (dialogresult == true)
{
using (Stream output = savedialog.OpenFile())
{
Unfortunately, Chinese is still not supported in the PDF files that RadRichTextBox exports. As Ivailo explained, this would require font embedding, which would be very heavy-weight. That is why at this point we are not considering embedding the fonts.