Which product are you using?
PDF.js Express Plus
PDF.js Express Version
8.7.4
Detailed description of issue
Can not load full API if i add “fullAPI:true” to webviewer constructor i get the following error:
Uncaught (in promise) Error: "fullAPI" is not a valid constuctor option for PDF.js Express. Please make sure you are referring to the proper documentation (https://pdfjs.express/documentation)
Expected behaviour
{Provide a screenshot or description of the expected behaviour}
Does your issue happen with every document, or just one?
Happens with every document
Code snippet
useEffect(() => {
WebViewer(
{
path: '/webviewer/lib',
licenseKey: 'my key',
initialDoc: 'https://path_to_doc.pdf',
fullAPI: true,
},
viewerRef.current
).then((instance) => {
setInstance(instance);
const { PDFNet, documentViewer } = instance.Core;
documentViewer.addEventListener('documentLoaded', async () => {
await PDFNet.initialize();
fetchMarkups();
});
});
}, []);