PDF Export - Don't break section

2 posts, 0 answers
  1. Laura
    Laura avatar
    4 posts
    Member since:
    Feb 2015

    Posted 18 Nov 2015 Link to this post

    Hello all, 


    I am trying to export html from a RadEditor to PDF and I have a table where I need to determine if it is going to break and show on 2 pages. If this is the case, I need to add a page break at the start of the table to ensure the table only shows on 1 page.


    I am trying to use this approach (http://www.telerik.com/blogs/using-an-external-library-for-the-export-to-pdf-functionality-in-telerik-s-asp.net-editor#disqus_thread) using RadDocument, but I am not seeing how to do this. Can anyone help?




  2. Ianko
    Ianko avatar
    1875 posts

    Posted 19 Nov 2015 Link to this post

    Hello Laura,

    I would suggest you using this approach http://www.telerik.com/support/code-library/extending-the-radeditor-pdf-exporting-with-pdfformatprovider

    Where you can use RadFlowDocument, not RadDocument. Which will enable you to traverse through the document sections and elements and alter it as per to your needs. In order to achieve that I suggest you to examine how you can process FlowDocument by examining the WordsProcessing documentation—http://docs.telerik.com/devtools/wpf/controls/radwordsprocessing/model/model.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top