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

Need help modifying a little bit of javascript?

Participant ,
Nov 20, 2016 Nov 20, 2016

I'm using Acrobat X on a Mac. I have this bit of javascript (see below). It does just the opposite of what I'm trying to do. I want to flatten the Stamps, Lines, Call-Out text boxes and any other type of annotation and not effect the buttons and input fields (or any other fields in the doc). Just flatten the annotations. Can someone help me out? Here's the script and a thank you.

Script:

this.syncAnnotScan();

var annots = this.getAnnots();

for (var i = 0; i < annots.length; i++) {

annots.print = (annots.type!="Stamp");

}

flattenPages(0,numPages-1,1);

this.syncAnnotScan();

annots = this.getAnnots();

for (var i = 0; i < annots.length; i++) {

annots.print = true;

}

TOPICS
Acrobat SDK and JavaScript , Windows
226
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
no replies

Have something to add?

Join the conversation