Hi there,
-
For add/modify/delete, please use exportAnnotationCommand:
PDFJS Express WebViewer Class: AnnotationManager -
To customize the measurement count icons, please take a look at this forum post here:
To replace Count tool icon by custom icon [Pdfjs-express 7.0] - #2 by Logan -
To add buttons on top toolbar, please check this guide here:
PDF.js Express Viewer Customize Toolbar | Documentation -
Count tool is an extension of stickyCreate Tool, so you can modify the sticky annotations using their ‘color’ property, i.e.
StickyAnnotation.Color = new Annotations.Color(255, 255, 255) -
You can hide elements in the UI with the following guide:
Hide & Disable Buttons in PDF.js Express Viewer | Documentation
(also in the customizing header guide above) -
You can disableElement using the above guide for this, i.e.
instance.UI.disableElement('notesPanel')
- Some annotations do not have fill color, but for those that do, you can follow the same steps as above:
Annotation.FillColor = new Annotations.Color(255, 0, 255)
Best regards,
Kevin Kim