Anyway to get the position and the name of a field in the form?

Community Beginner ,
Apr 27, 2018

Copy link to clipboard

Copied

If there is some fields like the following, is there anyway (maybe using API or SDK) to get the position of the fields (for example left 47.52 pt, ...) and the name of the field (in this case Text1, Text2 and Text5)? I would like to export these information into a text document or XML.

TOPICS
Acrobat SDK and JavaScript

Views

494

Likes

Translate

Translate

Report

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

1 Correct Answer

Most Valuable Participant , Jun 03, 2018
try67 Most Valuable Participant , Jun 03, 2018
This can be done with a script (written in JavaScript).You can use the getNthFieldName method to get access to all the fields in the file and then the rect property of each such Field object to get its location on the page.

Likes

Translate

Translate
Jump to answer Jump to answer
Adobe Community Professional ,
Apr 28, 2018

Copy link to clipboard

Copied

Try the forum for Acrobat SDK.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
sfc11245 AUTHOR
Community Beginner ,
Apr 28, 2018

Copy link to clipboard

Copied

Okay. Let me change the forum for SDK.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Most Valuable Participant ,
Jun 03, 2018

Copy link to clipboard

Copied

This can be done with a script (written in JavaScript).

You can use the getNthFieldName method to get access to all the fields in the file and then the rect property of each such Field object to get its location on the page.

Likes

Translate

Translate

Report

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