Guides
Top Toolbar
ToolbarConfig controls the document interface toolbar's show/hide state, button layout, and More menu items configuration.
Toolbar Visibility
You can independently control the visibility of each mode's toolbar:
json
{
"toolbarConfig": {
"mainToolbarVisible": true,
"annotationToolbarVisible": true,
"contentEditorToolbarVisible": true,
"formToolbarVisible": true,
"signatureToolbarVisible": true
}
}1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
| Field | Description |
|---|---|
mainToolbarVisible | Top main toolbar |
annotationToolbarVisible | Annotation mode bottom toolbar |
contentEditorToolbarVisible | Content editor mode bottom toolbar |
formToolbarVisible | Form mode bottom toolbar |
signatureToolbarVisible | Signature mode bottom toolbar |
Toolbar Button Configuration
Left & Right Buttons
toolbarLeftItems and toolbarRightItems control the buttons on the left and right sides of the top toolbar respectively:
json
{
"toolbarConfig": {
"toolbarLeftItems": [],
"toolbarRightItems": [
"thumbnail",
"search",
"bota",
"menu"
]
}
}1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
Available button values:
| Value | Description |
|---|---|
back | Back button |
thumbnail | Thumbnails |
search | Search |
bota | BOTA panel (outline/bookmarks/annotation list) |
menu | More menu |
More Menu Items
availableMenus controls the menu list shown when the More button is clicked:
json
{
"toolbarConfig": {
"availableMenus": [
"viewSettings",
"documentEditor",
"documentInfo",
"save",
"watermark",
"security",
"flattened",
"share",
"openDocument",
"snip"
]
}
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| Value | Description |
|---|---|
viewSettings | View settings |
documentEditor | Page editor |
documentInfo | Document info |
save | Save |
watermark | Watermark |
security | Security/encryption |
flattened | Flatten |
share | Share |
openDocument | Open document |
snip | Screenshot |
You can hide unwanted menu items or adjust the display order by modifying the items and their order in the array.
Ink Toggle Button
json
{
"toolbarConfig": {
"showInkToggleButton": true
}
}1
2
3
4
5
2
3
4
5
| Field | Description |
|---|---|
showInkToggleButton | Whether to show the pen/eraser toggle button in annotation mode |
Full Example
Keep only thumbnail and search buttons, show only save and share in the menu:
json
{
"toolbarConfig": {
"mainToolbarVisible": true,
"annotationToolbarVisible": true,
"contentEditorToolbarVisible": false,
"formToolbarVisible": false,
"signatureToolbarVisible": false,
"toolbarLeftItems": ["back"],
"toolbarRightItems": ["thumbnail", "search", "menu"],
"availableMenus": ["save", "share"]
}
}1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
To add custom buttons (modify icons/text or add entirely new feature buttons), see Custom Toolbar Items.