RadEditor ExportToPdf New Page

3 posts, 1 answers
  1. Hasan Can
    Hasan Can avatar
    4 posts
    Member since:
    Dec 2010

    Posted 27 Jun 2011 Link to this post

    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. Answer
    Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 29 Jun 2011 Link to this post

    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.

  3. Hasan Can
    Hasan Can avatar
    4 posts
    Member since:
    Dec 2010

    Posted 29 Jun 2011 Link to this post

    Thank you, it's working.
Back to Top