Some test text!

Loading...
Guides
Annotation numbering

Annotation Numbering

WebViewer has an option to automatically number annotations as you create them. When enabled, whenever you create an annotation or import one, it will receive the next available number, starting at 1. This associated number will be displayed for each annotation in the notes panel, allowing for easier tracking when working with a large amount of them.

WebViewer UI Annotation Numbering

You can enable this functionality by setting the webviewer option enableAnnotationNumbering

WebViewer({
    path: 'lib',
    initialDoc: 'https://pdftron.s3.amazonaws.com/downloads/pl/demo-annotated.pdf',
    enableAnnotationNumbering: true,
}, viewerElement).then((instance) => {
    // call apis here
})

Relevant APIs

WebViewer provides some APIs for customizing the default behaviors.

enableAnnotationNumbering

The annotation numbering functionality can be enabled, after intilization, by using enableAnnotationNumbering.

WebViewer(...)
  .then(function(instance) {
    instance.Core.annotationManager.enableAnnotationNumbering();
  });

disableAnnotationNumbering

The annotation numbering functionality can be disabled by using disableAnnotationNumbering.

WebViewer(...)
  .then(function(instance) {
    instance.Core.annotationManager.disableAnnotationNumbering();
  });

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