Skip to content
ComPDF
DemoAPI ReferenceFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub
Guides

Page Editor Menu

The ComPDF React Native SDK allows configuring the available menu options in the Page Editor interface via CPDFConfiguration.

Configure it through ComPDFKit.getDefaultConfig({ global: { pageEditor: ... } }). If you do not provide this configuration, the SDK shows insertPage, replacePage, extractPage, copyPage, rotatePage, and deletePage by default.

tsx
ComPDFKit.getDefaultConfig({
  global: {
    pageEditor: {
      menus: [
        'insertPage',
        'rotatePage',
        'deletePage'
      ]
    }
  }
})

Example Result:

AndroidiOS
guides_rn_3.8.9_1guides_rn_3.8.9_2

Available Menu Options

OptionDescription
insertPageInsert pages into the document.
replacePageReplace selected pages.
extractPageExtract selected pages into a new document.
copyPageCopy selected pages.
rotatePageRotate selected pages.
deletePageDelete selected pages.