Skip to content

Instantly share code, notes, and snippets.

@zacharysyoung
Last active May 11, 2022 17:34
Show Gist options
  • Save zacharysyoung/dc287d7c38bbbf87f195bce45cb7c359 to your computer and use it in GitHub Desktop.
Save zacharysyoung/dc287d7c38bbbf87f195bce45cb7c359 to your computer and use it in GitHub Desktop.
Make all PDF form fields editable, in Acrobat.
/* globals getField */
// From https://answers.acrobatusers.com/Script-change-fields-read-specific-fields-q296813.aspx
for(var i = 0; i < this.numFields; i++)
{
var fieldName = this.getNthFieldName(i);
getField(fieldName).readonly = false;
getField(fieldName).locked = false;
}
console.println('\nDone');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment