Skip to content

BOTA Configuration

The BOTA interface is used to display the Bookmarks, Outline, and Annotations lists of a PDF document.

Through BOTA configuration, you can control which types of tabs are displayed and what menu options are available within each interface.

Configure Enabled Tabs

Use CPDFBotaConfig.tabs to specify which tabs should be enabled:

tsx
ComPDFKit.getDefaultConfig({
  global: {
    bota: {
      tabs: ['outline', 'annotations']
    }
  }
});

Example Result:

AndroidiOS
guides_rn_3.8.8_1guides_rn_3.8.8_2

Configure Annotation Menu Options

BOTA supports setting global menus and individual annotation item menus for the Annotations list interface:

tsx
ComPDFKit.getDefaultConfig({
  global: {
    bota: {
      tabs: ['outline', 'annotations'],
      menus: {
        annotations: {
          global: botaMenus('importAnnotation', 'exportAnnotation', 'removeAllAnnotation'),
          item: [
            { id: 'reviewStatus', subMenus: ['accepted', 'cancelled', 'none'] },
            { id: 'markedStatus'},
            { id: 'more', subMenus: ['delete']}
          ]
        }
      }
    }
  }
})

Example Result:

AndroidiOS
guides_rn_3.8.8_4guides_rn_3.8.8_3

Annotation Global Menu Options

OptionDescription
importAnnotationImport annotations
exportAnnotationExport annotations
removeAllAnnotationRemove all annotations
removeAllReplyRemove all annotation replies

Annotation Review Status Submenu Options

OptionDescription
acceptedAccepted
rejectedRejected
cancelledCancelled
completedCompleted
noneNo status

More Menu Options

OptionDescription
addReplyAdd annotation reply
viewReplyView annotation replies
deleteDelete annotation