Advertisement
acroscript

AcrobatUsers.com q291099

Oct 11th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Loop through all of the fields in the document
  2. for (var i = 0; i < numFields; i++) {
  3.  
  4.     // Get a reference to the current field
  5.     var f = getField(getNthFieldName(i));
  6.  
  7.     // If the field exists, isn't a button, is set to read-only, and is set to not print...
  8.     if (f && f.type !== "button" && f.readonly && f.display === display.noPrint) {
  9.         f.display = display.visible;  // ...make it visible so it will print, gosh darn it!
  10.     }
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement