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'
]
}
}
})1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
Example Result:
| Android | iOS |
|---|---|
![]() | ![]() |
Available Menu Options
| Option | Description |
|---|---|
insertPage | Insert pages into the document. |
replacePage | Replace selected pages. |
extractPage | Extract selected pages into a new document. |
copyPage | Copy selected pages. |
rotatePage | Rotate selected pages. |
deletePage | Delete selected pages. |

