WebViewer Version:12.0.0
When i upload a word file having 4 pages, in the viewer it it showing 4 pages. But getPageCount() returning 1.
my code as below:
this.viewerInstance.UI.loadDocument(fileAsBlob, { filename: file.name, extension: ext,cacheKey: `1234-${new Date().getTime()}`, officeOptions:{formatOptions:{applyPageBreaksToSheet: true}} });
this.viewerInstance.Core.documentViewer.addEventListener(‘documentLoaded’, async () => {
const doc = this.viewerInstance.Core.documentViewer.getDocument();
const processDocument = async () => {
const pageCount = doc.getPageCount();
})})