Skip to content
ComPDF
DemoAPI ReferenceFAQ
New Release

Open-Source PDF SDK & AI Document Processing

Get the full self-hosted SDK and AI document processing on GitHub. One-click deploy to quickly build your document workflows.

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.