[Vuejs]-Save Class Instance to Vue Data

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

Leave a comment