Some test text!

Search
Hamburger Icon

Web / Guides / Annotation attachments

Add attachments to PDF annotation

WebViewer supports attachments for annotations, and this currently enables attaching files to the replies in notes panel.

When adding a reply, the user can click the attachment icon to add attachments to their reply. If the file format is image-based, a preview will render.

Add reply attachment

After posting the reply, the attachments added will show with the note content. The attachments will persist after downloading.

Reply attachments

Clicking on the attachment will open it in a new tab inside WebViewer. Note that you need to enable the MultiTab feature first.

instance.UI.enableFeatures([instance.UI.Feature.MultiTab]);

Relevant APIs

WebViewer provides some APIs for customizing the default behaviors.

enableAttachmentPreview

The preview of attachments can be enabled by using enableAttachmentPreview.

WebViewer(...)
  .then(function(instance) {
    instance.UI.NotesPanel.enableAttachmentPreview();
  });

disableAttachmentPreview

The preview of attachments can be disabled by using disableAttachmentPreview.

WebViewer(...)
  .then(function(instance) {
    instance.UI.NotesPanel.disableAttachmentPreview();
  });

Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales