Which files are actually needed

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)

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hello GaryC,

We have a script on our regular WebViewer download, which you can run with:

npm run optimize

or

node scripts/optimize-for-prod.js

This will ask a few questions and remove any unnecessary files that you will not be using in production. Let me know if this works for you!

Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron