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

RadEditor ExportToPdf New Page

2 Answers 77 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Hasan Can
Top achievements
Rank 1
Hasan Can asked on 27 Jun 2011, 10:00 AM
Hi,

I need a new page in pdf. 

Sample:
radeditor1.content = " pdf document page1 <br /> page1 new line -new page- pdf document page2"

Thank you.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 29 Jun 2011, 11:04 AM
Hi Hasan,

You can apply page break to the exported PDF using the a specific tag <?hard-pagebreak?> which will be recognized by the export tool. But since this is not a xhtml tag it will be modified by the browser, so to avoid this you will need to use a placeholder tag and replace it on the server before calling RadEditor's ExportToPdf() method.

For your convenience I have attached a sample page demonstrating this approach.

In addition, you can find an example on how to implement a custom button to the RadEditor's toolbar inserting a print page-break. It might be useful implementing page break for PDF:
Implementing a Page-break Button

All the best,
Dobromir
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Hasan Can
Top achievements
Rank 1
answered on 29 Jun 2011, 11:48 AM
Thank you, it's working.
Tags
Editor
Asked by
Hasan Can
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Hasan Can
Top achievements
Rank 1
Share this question
or