Ho to get annotation X & y position in java script

New Here ,
Feb 27, 2020 Feb 27, 2020

Copy link to clipboard

Copied

I am trying to get annotation x y position. pdf js conver xy position to rectangle.i  need x y position of annotaion layer.

TOPICS
Acrobat SDK and JavaScript, Cancel subscription, Comment review and collaborate PDF, Crash or freeze, Create PDFs, Edit and convert PDFs, General troubleshooting, How to, Install update and subscribe to Acrobat, PDF forms, Print and prepress, Rich media and 3D, Scan documents and OCR, Security digital signatures and esignatures, Standards and accessibility

Views

665

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct Answers

Most Valuable Participant , Feb 28, 2020 Feb 28, 2020
Most comment types have a rect property which provides you their location directly. Others have a quads array, or an array of point objects. It all depends on the type of comment...

Likes

Translate

Translate
Adobe Community Professional , Feb 29, 2020 Feb 29, 2020
This article covers everything you ever wanted to know about annotation coordinates: https://www.pdfscripting.com/public/PDF-Page-Coordinates.cfm

Likes

Translate

Translate
Adobe Community Professional ,
Feb 27, 2020 Feb 27, 2020

Copy link to clipboard

Copied

It really depends on the type of annotation and how you define the "x y position" of a 2-dimensional object exactly. Some can be quite large and shaped irregularly. What types of annotations will you be dealing with?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Feb 28, 2020 Feb 28, 2020

Copy link to clipboard

Copied

Most comment types have a rect property which provides you their location directly. Others have a quads array, or an array of point objects. It all depends on the type of comment...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Feb 29, 2020 Feb 29, 2020

Copy link to clipboard

Copied

LATEST

All annotations have a "rect" property. It can't be used to set coordinates in many cases, but it's always there for getting the coordinates. 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Feb 29, 2020 Feb 29, 2020

Copy link to clipboard

Copied

This article covers everything you ever wanted to know about annotation coordinates:

https://www.pdfscripting.com/public/PDF-Page-Coordinates.cfm

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines