Hello,
I have multipage TIFF, in which I draw 2 rectangle annotation on 1st page and draw 3 rectangle annotation in 2nd page , on one of my button click I want all the annotation from all my image. I am only getting current page annotation collection using AnnotationVisualTool.get_FocusedAnnotationView();
can you please share method how can i get all my annotation which I have draw in multiple page
Also, I have set value false to set_LoadAnnotationsOnlyForFocusedImage() method but still i am only getting annotation of current image only
Thanks,
Jwalit Katira
Get all annotations from all the images in web documentviewer
Moderator: Alex
-
- Posts: 31
- Joined: Mon Sep 18, 2023 1:41 pm
Re: Get all annotations from all the images in web documentviewer
Hello Jwalit,
The annotation controller stores annotation collections for all images.
For solving your task you need to do the following steps:
The annotation controller stores annotation collections for all images.
For solving your task you need to do the following steps:
- Get the annotation controller from annotation viewer using WebAnnotationViewerJS.get_AnnotationController function
- Get the annotation collection for image using the WebAnnotationViewControllerJS.get_AnnotationViewCollection function