Enter form edit mode from javascript

New Here ,
Apr 22, 2020

Copy link to clipboard

Copied

Hello.  I'm creating a simple script to place form fields on a document.

There is a high probability that at least one of the fields will have to be moved at run time due to some variability in the document layout.

 

Is there a way to programatically enter form edit mode at the end of my script?  I realize it only saves a button click but if it's possible, why not

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Yes, like this:

app.execMenuItem("AcroForm:Forms_EditFormInAcrobat")

TOPICS
Acrobat SDK and JavaScript, PDF forms

Views

55

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

Enter form edit mode from javascript

New Here ,
Apr 22, 2020

Copy link to clipboard

Copied

Hello.  I'm creating a simple script to place form fields on a document.

There is a high probability that at least one of the fields will have to be moved at run time due to some variability in the document layout.

 

Is there a way to programatically enter form edit mode at the end of my script?  I realize it only saves a button click but if it's possible, why not

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Yes, like this:

app.execMenuItem("AcroForm:Forms_EditFormInAcrobat")

TOPICS
Acrobat SDK and JavaScript, PDF forms

Views

56

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 22, 2020 0
Most Valuable Participant ,
Apr 23, 2020

Copy link to clipboard

Copied

Yes, like this:

app.execMenuItem("AcroForm:Forms_EditFormInAcrobat")

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 23, 2020 1
New Here ,
Apr 23, 2020

Copy link to clipboard

Copied

Awesome, thank you.

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 23, 2020 0