Skip to content
ComPDF
DemoFAQ

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 Flutter SDK allows you to configure the bottom menu in Page Editing mode via CPDFConfiguration.

Configure it through CPDFConfiguration.globalConfig.pageEditor. If you do not provide this configuration, the SDK shows insertPage, replacePage, extractPage, copyPage, rotatePage, and deletePage by default.

dart
CPDFConfiguration(
  globalConfig: const CPDFGlobalConfig(
    pageEditor: CPDFPageEditorConfig(
      menus: [
        CPDFPageEditorMenus.insertPage,
        CPDFPageEditorMenus.rotatePage,
        CPDFPageEditorMenus.deletePage,
      ]
    )
  )
)

Example:

AndroidiOS
Android Page Editor MenuiOS Page Editor Menu

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.