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

[Solved] ExportToPdf Roadmap

9 Answers 207 Views
Editor
This is a migrated thread and some comments may be shown as answers.
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

9 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Jun 2009, 06:34 AM
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.
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
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
0
Rumen
Telerik team
answered on 10 Jun 2009, 11:59 AM
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.
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?
0
Rumen
Telerik team
answered on 03 Nov 2009, 02:32 PM
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.
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."
0
Ianko
Telerik team
answered on 26 Aug 2013, 03:55 PM
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
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.
Tags
Editor
Asked by
Bartosz Krol
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Bartosz Krol
Top achievements
Rank 1
John T
Top achievements
Rank 1
mehmet
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or