Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to lock every field and save the work using JavaScript button?

Community Beginner ,
Jan 21, 2017 Jan 21, 2017

Hello guys,

How can I create a JavaScript button in Acrobat DC Pro which will lock all fields and save my work on (ex: Desktop) so when I e-mail to anyone it cannot be modified.

Hope i was clear enough.

Kind regards

TOPICS
Acrobat SDK and JavaScript , Windows
821
Translate
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 1 Correct answer

Community Expert , Jan 21, 2017 Jan 21, 2017

Hi.

You can place this JavaScript in a button on mouse up:

// all fields to readonly

for(var i=0;i<this.numFields;i++) {

var oFld = this.getField(this.getNthFieldName(i));

oFld.readonly = true;

}

Translate
Community Expert ,
Jan 21, 2017 Jan 21, 2017

Hi.

You can place this JavaScript in a button on mouse up:

// all fields to readonly

for(var i=0;i<this.numFields;i++) {

var oFld = this.getField(this.getNthFieldName(i));

oFld.readonly = true;

}


Acrobate du PDF, InDesigner et Photoshopographe
Translate
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
Community Beginner ,
Jan 21, 2017 Jan 21, 2017
LATEST

Dear

Thank you so much, it works  perfect.

Translate
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