Annotation on top of an image on WebViewer

Product: WebViewer

Product Version: 10.9

Please give a brief summary of your issue:
Annotation on top of an image on WebViewer

Please describe your issue and provide steps to reproduce it:
I would like to add an annotation programmatically on top of a JPEG image; however, the position is incorrect because I am positioning it based on the pixels of the original image, but the viewer scales it, so I lose the correct references.
I just need to understand the scale to correctly position the annotation after the loadDocument. How can I do this?

Please provide a link to a minimal sample where the issue is reproducible:

1 Like

Hello Nicola,

Thank you for contacting WebViewer Forums.

If you would like to position the annotation based on the PDF or Viewer itself, you may have to use getPDFCoordinates() or getViewerCoordinates() depending on what relative position you need.

More information about coordinates here: Coordinates | Apryse Documentation

Regards,
Luke

1 Like