Configuration
Toolbar Options
Configure which toolbar features are visible.
Control which buttons and features are visible in the PDF viewer toolbar.
All Options
| Option | Type | Default | Description |
|---|---|---|---|
sidebar | boolean | true | Thumbnail sidebar toggle |
pageNavigation | boolean | true | Page navigation controls |
zoom | boolean | true | Zoom controls |
search | boolean | true | Search tool |
rotate | boolean | true | Rotate button |
openFile | boolean | false | Open file button |
print | boolean | true | Print button |
download | boolean | true | Download button |
fullscreen | boolean | true | Fullscreen button |
themeToggle | boolean | true | Theme toggle button |
moreOptions | boolean | true | More options menu |
sidebar
Show/hide the thumbnail sidebar toggle button.
toolbar: {
sidebar: true
}
pageNavigation
Show/hide page navigation controls (previous/next buttons and page input).
toolbar: {
pageNavigation: true
}
zoom
Show/hide zoom controls (zoom in, zoom out, zoom level selector).
toolbar: {
zoom: true
}
search
Show/hide the full-text search functionality.
toolbar: {
search: true
}
rotate
Show/hide the rotate button.
toolbar: {
rotate: true
}
openFile
Show/hide the open file button. Disabled by default for security.
toolbar: {
openFile: false
}
Enabling this allows users to open any local PDF file. Only enable if needed.
Show/hide the print button.
toolbar: {
print: true
}
download
Show/hide the download button.
toolbar: {
download: true
}
fullscreen
Show/hide the fullscreen toggle button.
toolbar: {
fullscreen: true
}
themeToggle
Show/hide the light/dark theme toggle.
toolbar: {
themeToggle: true
}
moreOptions
Show/hide the "more options" dropdown menu.
toolbar: {
moreOptions: true
}