Determine if annotation is in viewable area of viewer.
Posted: Wed May 13, 2020 3:16 am
Hi,
I want to be able to scroll to an annotation only if it is not in the viewable area of the viewer.
I might have the viewer sized so that I can only see half a page. I want to be able to automatically scroll to an annotation
that is at the bottom of the page, but not in the viewable area. If the annotation is already in the viewable area, I do not want to scroll.
I might also have a multi page document and an annotation I want to scroll to might be on the last page.
I can scroll to the page I need by determining which image the annotation is on, but if the viewer is sized smaller than the page size I want to scroll the page so the annotation is visible.
I tried using the viewer ScrollToPoint method, but it will move the page even if the annotation is in the viewable areas.
Is there a way to do this?
Thanks
I want to be able to scroll to an annotation only if it is not in the viewable area of the viewer.
I might have the viewer sized so that I can only see half a page. I want to be able to automatically scroll to an annotation
that is at the bottom of the page, but not in the viewable area. If the annotation is already in the viewable area, I do not want to scroll.
I might also have a multi page document and an annotation I want to scroll to might be on the last page.
I can scroll to the page I need by determining which image the annotation is on, but if the viewer is sized smaller than the page size I want to scroll the page so the annotation is visible.
I tried using the viewer ScrollToPoint method, but it will move the page even if the annotation is in the viewable areas.
Is there a way to do this?
Thanks