This is a migrated thread and some comments may be shown as answers.

Pdf files exported using PdfFormatProvider not display correctly in Chinese

3 Answers 158 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
liu
Top achievements
Rank 1
liu asked on 06 May 2011, 10:25 AM
hi,
i am using PdfFormatProvider  in my application,Pdf files exported display correctly in English, but the Chinese can not display correctly, how should I do?

please help!
thanks.

3 Answers, 1 is accepted

Sort by
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
0
Tayyab
Top achievements
Rank 1
answered on 26 Jul 2012, 04:15 PM
does it support now ? 

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())
                {
                    
                    pdfprovider.Export(radRichTextBox1.Document, output);
                    output.Flush();
                    output.Dispose();
                }
            }
            MessageBox.Show("save Sucessfully"); 

Please guide me if I am wrong anywhere?
0
Petya
Telerik team
answered on 30 Jul 2012, 03:31 PM
Hello Tayyab,

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.

Greetings,
Petya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
liu
Top achievements
Rank 1
Answers by
Ivailo Karamanolev
Telerik team
Tayyab
Top achievements
Rank 1
Petya
Telerik team
Share this question
or