Skip to content

Install

You must install this package along with its peer dependency:

Terminal window
npm install tiptap-pagination-plus
Terminal window
npm install tiptap-table-plus

This package works with peer dependencies and requires the following packages to be installed in your project:

Terminal window
npm install @tiptap/extension-table @tiptap/extension-table-cell @tiptap/extension-table-header @tiptap/extension-table-row @tiptap/pm

Note: Make sure you have these peer dependencies installed as they are required for the package to function properly. The package will not work without these Tiptap extensions and ProseMirror.


OptionTypeDefaultDescription
pageHeightnumber800Height of each page in pixels
pageGapnumber50Gap between pages in pixels
pageGapBorderSizenumber1Border size for page gaps
pageBreakBackgroundstring”#ffffff”Background color for page gaps
pageHeaderHeightnumber50Height of page header in pixels
pageFooterHeightnumber50Height of page footer in pixels
footerRightstring”{page}“Custom text to display in the footer right side
footerLeftstring""Custom text to display in the footer left side
headerRightstring""Custom text to display in the header right side
headerLeftstring""Custom text to display in the header left side
marginTopnumber0Top margin for pages
marginBottomnumber0Bottom margin for pages
marginLeftnumber50Left margin for pages
marginRightnumber50Right margin for pages
contentMarginTopnumber0Top margin for content within pages
contentMarginBottomnumber0Bottom margin for content within pages

Note: tiptap-pagination-plus extends the default Tiptap pagination extension with additional functionality.