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

Problem Previewing PDF within internet browsers

2 Answers 132 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 04 Feb 2014, 12:09 AM
Hi all, 

Is anyone having an issue and a solution to viewing a pdf file created by RadRichTextBox by the following call; Telerik.Windows.Documents.FormatProviders.Pdf.PdfFormatProvider().Export(<textArea.Document>) in an email program, open within an internet browser (for example gmail open within Google Chrome) where the characters are not being converted correctly?  It is using the pdf internet browser plugin. 

It works fine if I right click on the plugin and open the document in another tab, or download the document and open it using Adobe Reader.  It only does not open correctly when clicking the plugin once and displaying the document within the plugin child window.  I have tested this in IE and Google Chrome.

I have attached a screen shot of what the pdf should look like and a screen shot of what it looks like when opening from the plugin.

Thank you in advance,

Lee.

2 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 06 Feb 2014, 11:54 AM
Hello Lee,

Thank you for contacting us.

The issue you are observing is related to a Silverlight limitation which prevents fonts from being embedded in the generated PDF.
What I could suggest as a workaround is to try exporting your documents server-side using the WPF version of RadRichTextBox where the mentioned limitation is not present.
The reason why the document is opening correctly when you open it in new tab is because the browser uses a different viewer which has access to the system fonts which allows the document to be loaded correctly.

If you have further questions or some other concerns do not hesitate to contact us again.

Regards,
Alexander
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

0
Lee
Top achievements
Rank 1
answered on 06 Feb 2014, 10:59 PM
Hello Alexander,

Thank you for your reply. I will test your suggestion and let you know.

Regards,

Lee.
Tags
PDFViewer
Asked by
Lee
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Lee
Top achievements
Rank 1
Share this question
or