Skip to main content
Inspiring
October 1, 2018
Question

Folder selection box - How to bring it up using Javasript

  • October 1, 2018
  • 1 reply
  • 1183 views

Not looking for app.browseForDoc() function.  This one only gets the files.  I am looking for a way to bring up the Folder selection box so a user can select the folder location where a list of files are kept and then have a simple script to loop through the folder selected and combine them into one document. 

Does anyone know how to do this?

This topic has been closed for replies.

1 reply

try67
Braniac
October 1, 2018

Acrobat JS doesn't have that capability. The only way you can get a list of files in Acrobat is if you run an Action over the folder.

Inspiring
October 1, 2018

I know that the Action has a Folder selection object and then you can run a javascript right after.  How do you capture what folder option the user selected?

try67
Braniac
October 1, 2018

Can you give an example?


I suggest you read the Acrobat JavaScript API Reference about the property I mentioned and the global object, and how to use them.