Interface: PdfToolsViewerApi
API for interacting with the PDF Viewer, exposing core functionalities for document interaction, event handling, and UI management.
PdfToolsViewerApi
hideElements()
hideElements: (
viewerEl
,components
) =>void
Hides specified UI elements in the Viewer.
Parameters
• viewerEl: PdfToolsViewer
The Viewer DOM element.
• components: HideableComponentConfigName
[]
List of components to hide.
Returns
void
Example
PdfToolsViewerApi.hideElements(['icon-button-print']);
showElements()
showElements: (
viewerEl
,components
) =>void
Shows specified UI elements in the Viewer.
Parameters
• viewerEl: PdfToolsViewer
The Viewer DOM element.
• components: HideableComponentConfigName
[]
List of components to show.
Returns
void
Example
PdfToolsViewerApi.showElements(['toolbar', 'icon-button-hamburger']);
dialogs
dialogs
dialogs:
Dialogs
Groups all the dialog-related API actions.
document
document
document:
Document
Groups all the document-related API actions.
file
file
file:
Files
Groups all the file-related API actions.
search
search
search:
Search
Groups all the search-related API actions.
toolbar
toolbar
toolbar:
Toolbar
Groups all the toolbar-related API actions.