# Customize PDF Page Content and Pagination

This topic describes the steps involved in the custom pagination process in DsExcel.

## Content

DsExcel enables users to manage pagination while exporting to a PDF file.
The pagination settings are used to control how the data lying in the worksheets breaks across the pages in the PDF file. The [PrintManager](/document-solutions/java-excel-api/api/online/v9.2/com/grapecity/documents/excel/PrintManager.html) class contains the methods that help users in handling custom pagination requirements and preferences.
The custom pagination process works in four basic steps as described below.

* Step 1 - Create an instance of the [PrintManager](/document-solutions/java-excel-api/api/online/v9.2/com/grapecity/documents/excel/PrintManager.html) class.
* Step 2 - Get the default pagination information of the workbook using the [paginate()](/document-solutions/java-excel-api/api/online/v9.2/com/grapecity/documents/excel/PrintManager.html#paginate) method.
* Step 3 - Adjust pagination using different methods of the PrintManager class.
* Step 4 - Save the PDF file by using either the [savePageInfosToPDF()](/document-solutions/java-excel-api/api/online/v9.2/com/grapecity/documents/excel/PrintManager.html#savePageInfosToPDF) method or the [saveWorkbooksToPDF()](/document-solutions/java-excel-api/api/online/v9.2/com/grapecity/documents/excel/PrintManager.html#saveWorkbooksToPDF) method.

DsExcel provides flexible pagination options for controlling how worksheet content is exported to PDF, including page breaks, page settings, headers, footers, selected ranges, and multi-sheet output.
For more information, refer to the following topics:

* [Get Worksheet Pagination](/document-solutions/java-excel-api/docs/online/v9.2/ManageFileOperations/ExporttoaPDFFile/ControlPagination/export-worksheet-to-pdf)
* [Render Excel Range Inside PDF](/document-solutions/java-excel-api/docs/online/v9.2/ManageFileOperations/ExporttoaPDFFile/ControlPagination/RenderExcelRangeInsidePDF)
* [Export Multiple Sheets To One Page](/document-solutions/java-excel-api/docs/online/v9.2/ManageFileOperations/ExporttoaPDFFile/ControlPagination/ExportMultipleSheetsToOnePage)
* [Export Multiple Workbooks to Single PDF](/document-solutions/java-excel-api/docs/online/v9.2/ManageFileOperations/ExporttoaPDFFile/ControlPagination/SaveMultipleWorkbookstoSinglePDF)
* [Keep Rows Together Over Page Breaks](/document-solutions/java-excel-api/docs/online/v9.2/ManageFileOperations/ExporttoaPDFFile/ControlPagination/KeepRowsTogetherOverPageBreaks)
* [Export Selected Pages and Remove Blank Pages](/document-solutions/java-excel-api/docs/online/v9.2/ManageFileOperations/ExporttoaPDFFile/ControlPagination/ExportSpecificPagestoPDF)
* [Customize Page Content, Headers, and Footers](/document-solutions/java-excel-api/docs/online/v9.2/ManageFileOperations/ExporttoaPDFFile/ControlPagination/ExportDifferentHeadersonDifferentPages)