Which product are you using?
PDF.js Express Version 8
Detailed description of issue
We try to display PDF’s attachments.
We enable to display attachment pannel with the code below:
- enableElements([‘attachmentPanelButton’]
When we try to read a pdf with a file attached we have the following error:
Our application authorize to user PDFTron and PDF JS Express. With PDFTron we add “fullAPI: true” in the constructor but this attribute is not available on the PDF JS Express’s constructor.
Expected behaviour
Display PDF’s attachments with PDF JS Express.
Is-it possible to activate fullAPI on PDF JS Express
Does your issue happen with every document, or just one?
It happen with every document
Link to document
document (2).pdf (70.4 KB)
Code snippet
v._webViewerInstance = await WebViewer({
licenseKey: licenceKey,
path: viewerUrl,
css: Utils.makeAbsoluteUrl('/css/pdfjsexpress.css'),
annotationUser: v._userName,
isReadOnly: canAnnotate !== true,
enableAnnotations: true,
disableFlattenedAnnotations: true,
disabledElements: ['rotateButtons', 'linkButton', 'notePopupState']
}, $container[0]);
v._webViewerInstance.enableElements(['attachmentPanelButton']);