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

PDF Export - Don't break section

1 Answer 56 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Laura
Top achievements
Rank 1
Laura asked on 18 Nov 2015, 01:05 PM

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?

 

Thanks, 

Laura

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 19 Nov 2015, 08:55 AM
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.

Regards,
Ianko
Telerik
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
Tags
Editor
Asked by
Laura
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or