Display PDF's attachments

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:
Error1

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']);

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:

Share how you are using PDF.js Express in your organization you could win a $500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free. Learn more here

Hello nle,

This is intentional, the notes panel is not available in PDFJS Express. It looks like we forgot to completely disable the feature, our apologies.

Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron


Share how you are using PDF.js Express in your organization you could win a $500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free. Learn more here

Hello Tyler,

Thanks you for your support.

Sincerely,

Nicolas Léonet