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

need help to speed up processing

Participant ,
May 09, 2017 May 09, 2017

At the moment I'm using two buttons, one to halt calculations and one to perform the calculations using these scripts:

  // Turn Calculations Off

   // Use Master Calc to control calculations in other areas

   this.masterCalc = this.calculate = false;

   // Turn Calculations On

   this.masterCalc = this.calculate = true;

   this.calculateNow();

I really don't have calculations in the form, I'm applying these scripts to help speed up the form processing (like changing field colors, show/hide fields, etc). What I would like to find is a script that would work better and to eliminate using the two buttons and having to click one to turn on the script and click the other to turn off the script.

Can someone help me with this issue. The reason I'm asking this question is because when the AcrobatUsers forum was open to asking, someone said that these scripts were not ideal  to help speed up form processing and that there were better scripts. So, would someone please help me out and provide an example of what would work better and to eliminate having to use two buttons. Or, a better approach to speeding things up. A more professional way. Thanks folks.

TOPICS
Acrobat SDK and JavaScript , Windows
327
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 , May 09, 2017 May 09, 2017

You don't need those buttons at all. Take a look at the document "delay" property. This property can delay the redrawing of any appearance changes to every field in the document. It is generally used to buffer a series of changes to fields before requesting that the fields regenerate their appearance.

Set the delay to true at the start of a script then to false just before it ends.

Translate
Community Expert ,
May 09, 2017 May 09, 2017
LATEST

You don't need those buttons at all. Take a look at the document "delay" property. This property can delay the redrawing of any appearance changes to every field in the document. It is generally used to buffer a series of changes to fields before requesting that the fields regenerate their appearance.

Set the delay to true at the start of a script then to false just before it ends.

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