How to get offset position of an annotations #18616
Unanswered
kevintherm
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I have this script that supposedly programmatically create an freeText annotations and using
createAndAddNewEditor
method, it requires offsetX and offsetY as it parameters. I've been wondering how can i get an accurate position of an existing annotations and then use it as a parameter for offsetX and offsetY.Right now I've been using the
rect
property as an offsetX and offsetY but it doesn't seems to be accurate.Im getting the rect property by calling
PDFViewerApplication.pdfDocument.annotationStorage.serializable.map
My function
pdf.js's method

createAndAddNewEditor
that I tried to useBeta Was this translation helpful? Give feedback.
All reactions