Skip to main content
Participating Frequently
April 28, 2018
Answered

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

  • April 28, 2018
  • 2 replies
  • 2452 views

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.

This topic has been closed for replies.
Correct answer try67

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.

2 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
June 3, 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.

Bernd Alheit
Community Expert
Community Expert
April 28, 2018

Try the forum for Acrobat SDK.

sfc11245Author
Participating Frequently
April 28, 2018

Okay. Let me change the forum for SDK.