Interface: PdfToolsViewerApi
One point of interaction with the whole api
PdfToolsViewerApi
hideElements()
hideElements: (
viewerEl
,components
) =>void
Hide some elements part of the viewer ui.
Parameters
• viewerEl: PdfToolsViewer
Viewer DOM element.
• components: HideableComponentConfigName
[]
A list of elements to hide.
Returns
void
Example
PdfToolsViewerApi.hideElements(['icon-button-print']);
showElements()
showElements: (
viewerEl
,components
) =>void
Show some elements part of the viewer ui.
Parameters
• viewerEl: PdfToolsViewer
Viewer DOM element.
• components: HideableComponentConfigName
[]
A list of elements to show.
Returns
void
Example
PdfToolsViewerApi.showElements(['toolbar', 'icon-button-hamburger']);
dialogs
dialogs
dialogs:
Dialogs
document
document
document:
Document
file
file
file:
Files
search
search
search:
Search
toolbar
toolbar
toolbar:
Toolbar