ApryseSDK / webviewer-ui

WebViewer UI built in React
Other
416 stars 355 forks source link

Calling setFitMode on the viewer element doesn't work #186

Closed mparizeau-pdftron closed 5 years ago

mparizeau-pdftron commented 5 years ago

For example:

const viewer = new PDFTron.WebViewer({...});

viewerElement.addEventListener('documentLoaded', () => {
  viewer.setFitMode('FitPage');
});

This doesn't work because the functions for fit modes aren't implemented on the instance setup in index.js.

ZhijieZhang commented 5 years ago

We had a discussion internally and this issue is fixed by changing webviewer.js