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.

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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.

TOPICS
Acrobat SDK and JavaScript

Views

447

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

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.

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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.

TOPICS
Acrobat SDK and JavaScript

Views

448

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
Apr 27, 2018 0
Adobe Community Professional ,
Apr 28, 2018

Copy link to clipboard

Copied

Try the forum for Acrobat SDK.

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
Reply
Loading...
Apr 28, 2018 0
Community Beginner ,
Apr 28, 2018

Copy link to clipboard

Copied

Okay. Let me change the forum for SDK.

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
Reply
Loading...
Apr 28, 2018 0
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
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 03, 2018 1