I’ve downloaded the zip and under Webviewer/WebViewer/lib/core there are around 400 files - do all of these need to be there for general usage?
ie WebViewer/lib/core/AndroidContentPartRetriever.chunk.js
we’re using as a standalone viewer with a stripped down tool bar
<script src='/PDFTronViewer/WebViewer/lib/webviewer.min.js'></script>
then
WebViewer({
path: '/PDFTronViewer/WebViewer/lib/',
licenseKey: 'xxxxxx',
initialDoc: 'xxxxxx',
useDownloader: true,
}, document.getElementById('viewer'))
.then(instance => {
const {documentViewer, annotationManager} = instance.Core;
const LayoutMode = instance.UI.LayoutMode;
instance.UI.disableElements(['ribbons']);
instance.UI.setToolbarGroup('View');
instance.UI.disableElements(['toggleNotesButton']);
documentViewer.addEventListener('documentLoaded', () => {
instance.UI.openElements(['leftPanel']);
instance.UI.setActiveLeftPanel('thumbnailsPane');
instance.UI.disableElements(['downloadButton', 'printButton', 'layersPanel']);
instance.UI.setLayoutMode(instance.UI.LayoutMode.FacingContinuous);
});
});
(just trying to minimise what we have on the server)