Skip to main content
Known Participant
January 19, 2018
Resuelto

Import of fdf-file very slow

  • January 19, 2018
  • 1 respuesta
  • 1045 visualizaciones

I have a huge acrobat form with much more than 1000 form fields on 450 pages. It sometimes takes more than 5 minutes to import the fdf-file.

Does anyone know a way to accalerate the import?

Thank you for your help in advance

Matthias

Este tema ha sido cerrado para respuestas.
Mejor respuesta de Thom Parker

Thank you for your answer. I have disabled Java Script and the import takes only a few seconds!!!

Is there any way to make it more comfortable for the user?


Maybe.  Next you need to make sure that turning off calculations will have the same affect.  Run the code for turning off calcs from the console window. Make sure the import won't affect the calculation state, i.e. you don't have any other code somewhere that will turn calculations back on. including in the FDF.

If this works then the best way to control turning calcs on and off is to place the code into the before and after scripts in the FDF itself.

Otherwise you need a way to detect when the FDF is completely loaded.

1 respuesta

try67
Community Expert
Community Expert
January 19, 2018

Are there calculations in your file? If so, disable JS before importing the

data.

mbddAutor
Known Participant
January 19, 2018

Yes there are many calculations in the file. I have tried to stop the calculations with

this.calculate = false;

this.delay = true;

and end it with

this.calculate = true;

this.delay = false;

But it doesn´t help.


Thom Parker
Community Expert
Community Expert
January 19, 2018

I believe that Try is suggesting you manually disable JavaScript from the Acrobat Preferences Panel. Access it from the "Edit > Preferences" menu.  Look on the JavaScript panel (shown below).  This will prevent any script from slowing down the import. So now if you import it and it is very slow, you know that its just because you have a big form and are trying to import too much stuff. But if it gets faster, then you know the source of the slowness.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often