Some test text!

Loading...
Guides
Annotation attachments

Annotation attachments

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();
  });

Get the answers you need: Support

Upcoming Webinar: PDFTron SDK Tech Review | Nov 29, 2022 at 2 pm ET

PDFTron SDK

The Platform

NEW

© 2022 PDFTron Systems Inc. All rights reserved.

Privacy

Terms of Use