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.

Apryse Docs Image

You can enable this functionality by setting the webviewer option enableAnnotationNumbering

JavaScript

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

Relevant APIs

WebViewer provides some APIs for customizing the default behaviors.

enableAnnotationNumbering

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

JavaScript

1WebViewer(...)
2 .then(function(instance) {
3 instance.Core.annotationManager.enableAnnotationNumbering();
4 });

disableAnnotationNumbering

The annotation numbering functionality can be disabled by using disableAnnotationNumbering.

JavaScript

1WebViewer(...)
2 .then(function(instance) {
3 instance.Core.annotationManager.disableAnnotationNumbering();
4 });

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales