Enable File Attachment List
There are two types of attachments that can be found within a PDF file:
Embedded file attachments (not annotations)
File attachment annotations
In the WebViewer UI, the file attachment panel is enabled by default. You can disable it by using the disableElements() method.
WebViewer({
fullAPI: true,
// other options
}, document.getElementById('viewer'))
.then(() => {
// enable attachment panel
instance.UI.disableElements(['attachmentPanelButton']);
});
Last updated
Was this helpful?