You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding tables in RadPdfProcessing using the [RadFixedDocumentEditor](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/editing/radfixeddocumenteditor), tables may sometimes split across pages if they cannot fit within the remaining space on the current page. To ensure a table fits entirely on one page and starts on a new page if necessary, you can adopt a strategy to measure the table size and calculate the remaining page height.
21
21
22
-
This knowledge base article also answers the following questions:
23
-
- How to stop tables from splitting across pages in RadPdfProcessing?
24
-
- How to apply page breaks before adding tables in RadPdfProcessing?
25
-
- What is the best way to manage table positioning in RadPdfProcessing?
22
+
This article demonstrates how to prevent tables from splitting across pages and apply page breaks before adding tables using FixedContentEditor.
26
23
27
24
## Solution
28
25
29
-
### Using RadFixedDocumentEditor
30
-
31
-
Measuring the table and calculating the remaining page height is a valid approach. Here's how you can implement it:
For more precise positioning, you can use the [FixedContentEditor](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/editing/fixedcontenteditor). This editor allows you to measure and draw tables with exact positioning. Below is an example implementation:
26
+
Measuring the table and calculating the remaining page height is the suitable approach. For precise positioning, you can use the [FixedContentEditor](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/editing/fixedcontenteditor). This editor allows you to measure and draw tables with exact positioning. Below is an example implementation:
-[Drawing Tables with RadFixedDocumentEditor](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/editing/table#drawing-table-with-radfixeddocumenteditor)
117
-
-[Drawing Tables with FixedContentEditor](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/editing/table#drawing-table-with-fixedcontenteditor)
0 commit comments