0👍
Somehow you are triggering the button click before WebViewer has loaded and initialized.
You cannot interact with WebViewer API (except the constructor), until you get the ready event.
https://www.pdftron.com/api/web/PDFTron.WebViewer.html#event:ready__anchor
See this page for an example.
https://www.pdftron.com/documentation/samples/js/viewing
I would recommend adding your button listeners in the ready event listener, so users can only use those buttons once the viewer is ready.
👤Ryan
- [Vuejs]-How to disable v-model input in Vue from mutating
- [Vuejs]-Does passing data from blade to vue component is safe from hackers?
Source:stackexchange.com