# Multi-Page Content

The PDF Processing component provides options for generating multi-page content in PDF, preventing the page-split, and rendering page templates.

* [Manual page breaking](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/multipage-content#manual-page-breaking)
* [Automatic page breaking](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/multipage-content#automatic-page-breaking)
* [Page templates](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/multipage-content#page-templates)
* [Preventing page breaking in elements](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/multipage-content#preventing-page-breaking-in-elements)

For more information on how to render multi-page content with the Drawing library, refer to its [PDF output documentation](https://www.telerik.com/kendo-vue-ui-develop/components/drawing/pdf-output/multi-page-content).

## Manual Page Breaking

To manually specify the page breaks, use the [`forcePageBreak`](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/api/pdfexportprops#forcepagebreak) property. As a result, a page break, which matches the `forcePageBreak` CSS selector, occurs before each element.

The following example demonstrates how to split the content into multiple pages.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/pdf/multipage-content/manual-page-breaking/source.txt)

## Automatic Page Breaking

The PDF Processing component supports automatic page breaking. To automatically insert page breaks, set the [`paperSize`](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/api/pdfexportprops#papersize) option. You will still be able to apply the [`forcePageBreak`](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/api/pdfexportprops#forcepagebreak) configuration to manually specify the break points.

For more information, refer to the [known limitations of the Drawing library and the PDF Export component](https://www.telerik.com/kendo-vue-ui-develop/components/drawing/limitations-browser-support).

[Demo Source](https://demos.telerik.com/kendo-vue-ui/pdf/multipage-content/automatic-page-breaking/source.txt)

## Page Templates

When you request multi-page output through the [`forcePageBreak`](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/api/pdfexportprops#forcepagebreak) or [`paperSize`](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/api/pdfexportprops#papersize) options, you can additionally specify a [`pageTemplate`](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/api/pdfexportprops#pagetemplate). The page template is inserted into each page before the output is produced and you can position it relatively to the page by using CSS.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/pdf/multipage-content/page-templates/source.txt)

## Preventing Page Breaking in Elements

To prevent specific elements from being split across pages, use the [`keepTogether`](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/api/pdfexportprops#keeptogether) option. `keepTogether` accepts CSS selectors that are passable to [`querySelector`](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector).

All elements from the following example which have the `"prevent-split"` CSS class are kept within the boundaries of the pages and their content is not split. If they fall on a margin, they will be moved to the next page.

For more information on existing issues in element behavior during page breaking, refer to the article about [known limitations and browser support](https://www.telerik.com/kendo-vue-ui-develop/components/drawing/pdf-output/multi-page-content).

[Demo Source](https://demos.telerik.com/kendo-vue-ui/pdf/multipage-content/multi-page-content-keep-together/source.txt)

## Suggested Links

* [API Reference of the PDF Processing Component](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/api/pdfexportprops)
* [Rendering Multi-Page Content with the Drawing Library](https://www.telerik.com/kendo-vue-ui-develop/components/drawing/pdf-output/multi-page-content)
