Product: PDFTron
Product Version: 8.9
Please give a brief summary of your issue:
In my application, I’d like to ensure that the document fitMode always is set to FitMode.FitWidth. When I load a document, FitMode.FitWidth does in fact set the correct size, however, there are times when a page refresh occurs that sets the document to a different width.
The solution that I looked into was to utilize the fitModeUpdated event as shown below:
documentViewer.addEventListener('fitModeUpdated', async () => {
instance.UI.setFitMode(FitMode.FitWidth);
});
However, this solution seems to prevent documents from loading. The document starts to load, but never completes, so I assume this is not the correct approach. My question is whether this is the right path, in which case, what am I overlooking, or whether I should consider something else.
Thanks
Dave
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
Please provide a link to a minimal sample where the issue is reproducible: