Any flutterweb integration sample available?

Hi there,

  1. For add/modify/delete, please use exportAnnotationCommand:
    PDFJS Express WebViewer Class: AnnotationManager

  2. 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

  3. To add buttons on top toolbar, please check this guide here:
    PDF.js Express Viewer Customize Toolbar | Documentation

  4. 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)

  5. 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)

  6. You can disableElement using the above guide for this, i.e.

instance.UI.disableElement('notesPanel')

  1. 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