Bartosz Krol
Top achievements
Rank 1
Bartosz Krol
asked on 27 May 2009, 07:33 AM
Hello,
Do you have a roadmap for the RadEditor ExportToPdf feature?
1. Does it support fonts other than TimesNewRoman?
2. Does it support loacalized fonts (polish)?
3. Is it possible to save pdf on the server instead of outputting it to the client?
Kind regards,
Bart
Do you have a roadmap for the RadEditor ExportToPdf feature?
1. Does it support fonts other than TimesNewRoman?
2. Does it support loacalized fonts (polish)?
3. Is it possible to save pdf on the server instead of outputting it to the client?
Kind regards,
Bart
9 Answers, 1 is accepted
0
Hi Bartosz,
We are searching for solutions for point 1 and 2 and if we succeed we will share them with the community.
As for the third request: For your convenience I have attached an example demonstrating how to export the editor's content as PDF on the server using the new OnExportContent event property of RadEditor. The demo is based on the following blog post:
How To: Export grid to PDF file and show the result using the window
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
We are searching for solutions for point 1 and 2 and if we succeed we will share them with the community.
As for the third request: For your convenience I have attached an example demonstrating how to export the editor's content as PDF on the server using the new OnExportContent event property of RadEditor. The demo is based on the following blog post:
How To: Export grid to PDF file and show the result using the window
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Bartosz Krol
Top achievements
Rank 1
answered on 01 Jun 2009, 08:17 AM
Hi Rumen,
Thank you for the example. It does solve point 3.
I'll be looking forward to see point 1 and 2 solved as well.
Best regards,
Bart
Thank you for the example. It does solve point 3.
I'll be looking forward to see point 1 and 2 solved as well.
Best regards,
Bart
0
Bartosz Krol
Top achievements
Rank 1
answered on 05 Jun 2009, 08:04 AM
Hello Rumen,
Is it possible to get a rough timeframe on points 1 and 2? We are making some preliminary plans and the information would be very helpful.
Best regards,
Bart
Is it possible to get a rough timeframe on points 1 and 2? We are making some preliminary plans and the information would be very helpful.
Best regards,
Bart
0
Hi Bart,
To export correctly content other than English and fonts other than Times New Roman, you should produce the content similar to the above one:
<span style="font-family: Arial Unicode MS;">握り寿司 български polszczyzna</span>
The third party HTML2PDF convertor that RadEditor uses expects style="font-family to be set in the imported content so that it can understand the font-family and font encoding information.
For your convenience I have attached the modified exporttopdfsaveinpdffile.zip archive which demonstrates how to export the text above to a PDF document.
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
To export correctly content other than English and fonts other than Times New Roman, you should produce the content similar to the above one:
<span style="font-family: Arial Unicode MS;">握り寿司 български polszczyzna</span>
The third party HTML2PDF convertor that RadEditor uses expects style="font-family to be set in the imported content so that it can understand the font-family and font encoding information.
For your convenience I have attached the modified exporttopdfsaveinpdffile.zip archive which demonstrates how to export the text above to a PDF document.
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Bartosz Krol
Top achievements
Rank 1
answered on 10 Jun 2009, 02:29 PM
Rumen,
This is absolutely fantastic! Exactly what I’ve needed! Thanks a million!
Best regards,
Bart
0
John T
Top achievements
Rank 1
answered on 29 Oct 2009, 07:23 PM
I tried the code to get fonts modifications to come out in the PDF and could not get it to work. By this, I mean, that I would select a section of text in the RadEditor, and change its font to Arial. Then, I would try to export the RadEditor text to a PDF. The PDF would show all text as TimesNewRoman.
Has this been addressed yet?
Has this been addressed yet?
0
Hi John,
Did you try the solution provided in my earlier post: exporttopdfsaveinpdffile.zip? I tested the example with the latest official Q2 2009 SP1 version 2009.2.826 of RadEditor and it worked fine with the Arial font.
For your convenience I have attached a video demonstrating my test/
Greetings,
Rumen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Did you try the solution provided in my earlier post: exporttopdfsaveinpdffile.zip? I tested the example with the latest official Q2 2009 SP1 version 2009.2.826 of RadEditor and it worked fine with the Arial font.
For your convenience I have attached a video demonstrating my test/
Greetings,
Rumen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
mehmet
Top achievements
Rank 1
answered on 22 Aug 2013, 08:52 AM
ı make did you say but show this message when ı opened file.
"adope reader can not open. because file has been damaged."
"adope reader can not open. because file has been damaged."
0
Hello Mehmet,
I have answered your question in the originally posted forum thread that you opened.
Just in short here I will post my answer for every one interested in the described issue:
In your case the PDF file is alerting, because some Turkish characters are being converted to HTML entities by the built-in ConvertCharactersToEntities filter of the RadEditor control.
The solution is to disable this filter.
More information could be found in this Forum thread.
Regards,
Ianko
Telerik
I have answered your question in the originally posted forum thread that you opened.
Just in short here I will post my answer for every one interested in the described issue:
In your case the PDF file is alerting, because some Turkish characters are being converted to HTML entities by the built-in ConvertCharactersToEntities filter of the RadEditor control.
The solution is to disable this filter.
More information could be found in this Forum thread.
Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.

