Skip to main content
Known Participant
October 21, 2024
Question

Looking for an Action Wizard to import data into multiple forms.

  • October 21, 2024
  • 2 replies
  • 1136 views

I have a bunch of PDF fillable forms that have data. The form itself has been updated recently and I would like to extract the data from the old version of the form to the new version of the form. The New form will be saved to the same file name as the old form. Is this something that can be accomplished with the Action Wizard or Java Script?

 

I found a way in "Prepare Forms" to extract the data to a file named as the original document name and with an extension of *.fdf.

Maybe there is a way to batch convert these files to .fdf files from the old forms and then import to the new form.

2 replies

try67
Community Expert
Community Expert
October 21, 2024

You would need to use a script as a part of an Action to do both things.

But do the files you want to import the data into have the same names as the ones you're exporting it from?

If not, how should it know which FDF file to import into each PDF?

Known Participant
October 22, 2024

This would be the procedure

I have a blank form called "Blank Luminaire for Tablet", and lets say the fpf file is named "HML1093005_data.fdf"

I would like to open the Blank Luminaire for Tablet file then import the HML1093005_data.fdf into the Blank Luminaire for Tablet file, and then save this file as HML1093005.pdf

 

and then open the Blank Luminaire for Tablet. Import the next file in the same directory, which would be HML1093006_data. pdf, save it as HML1093006.pdf, and so on until all 198 files have been updated.

try67
Community Expert
Community Expert
October 22, 2024

I don't think that would work in an Action, so it processes each PDF file only once. You will need to create a list of all the FDF file names, and then run the code to import them one by one (and save under a new name each time) from the Console, or using a Custom Command, or a new button added to Acrobat by the script.

 

If you're interested in hiring a professional to set it all up for you, feel free to contact me privately by clicking my user-name and then on the blue "Message" button.

PDF Automation Station
Community Expert
Community Expert
October 21, 2024

On the old form run the following script in the console:

this.exportAsFDF();

Remember where you saved the file, then drill down to it in the new form by running this script in the console:

this.importAnFDF();

Known Participant
October 21, 2024

This is not working as expected. I still have to process each file one at a time. I have 198 files to get done and this one at a time is not working.

 

I tried setting up an Action wizard but its not working. When you say run the following script in the console. What console are you talking about?

 

I was able to get through the extraction of all the old forms, of course one at a time.

Now I have a folder with 198 .fdf files. each file has different data.

I now need to use the new form to import each data file and save it as a seperate PDF file with the same name as the .fpf file. 

 

PDF Automation Station
Community Expert
Community Expert
October 21, 2024

The JavaScript Console. You said "form" not "forms" so I assumed it was a one-form process.  There are few a ways to do this.  First, by "extract data" do you mean form field data?  Are the field names the same (old form/new form)?  Are you trying to process a batch of old form/new form combinations?  Is there naming consistency between the old and new file names?  Can you provide an example?