Can Adobe Acrobat Import Files and Save Them to a New Folder?
Question details
The user wants to know if it is possible to use a PDF form's buttons to select local files, import them, and automatically save them into a newly created folder with renamed files.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Automating the collection of user information and associated files through an interactive PDF form.
- Observed behavior
- Standard PDF form features do not permit unrestricted access to the local file system. Creating folders and copying files requires advanced Acrobat JavaScript and elevated security permissions, which are heavily restricted by default.
Ensure you are using the desktop version of Adobe Acrobat Pro, as standard web viewers and Acrobat Reader block the execution of advanced file-system scripts for security reasons.
Use Acrobat JavaScript with Folder-Level Permissions
Use Acrobat's JavaScript API to handle local file operations, provided you have configured the necessary security trust settings.
Executing local file-system changes through a PDF is heavily restricted to prevent malicious activities. You must configure folder-level JavaScript and grant appropriate trust privileges for this workflow to succeed.
Open Adobe Acrobat, navigate to Edit > Preferences > JavaScript, and ensure that 'Enable Acrobat JavaScript' is checked.
Create a custom JavaScript using methods like 'app.browseForDoc()' to select the target files and data-saving methods to copy them.
Place your script in the Acrobat application's privileged JavaScript folder directory to bypass standard security restrictions and allow file writing.
Open your PDF form in Edit mode, add a button field, and set its action to 'Run a JavaScript', referencing your newly created function.

Deploy Alternative Document Management Solutions
Since PDF JavaScript is restricted, using external scripts or dedicated document management software is safer and more reliable.
Discover a Safer, All-in-One Office and PDF Suite
While executing complex file-system scripts directly from a PDF poses significant security risks, switching to a comprehensive productivity suite like WPS Office provides robust, secure document management. WPS Office offers powerful PDF editing, seamless form filling, and full integration with Word, Excel, and PowerPoint alternatives without the high cost.
- 1. Download WPS Office: Visit the official WPS website to download the free, lightweight installer for your operating system.
- 2. Install the suite: Run the installation file and follow the quick setup instructions to integrate WPS Office with your system.
- 3. Manage PDFs securely: Open your PDF files directly in WPS PDF to read, fill forms, and annotate safely without exposing your file system to malicious scripts.

Frequently Asked Questions
Why does Adobe Acrobat restrict saving files to new folders via JavaScript?
Adobe restricts file-system access for security. Allowing PDFs to silently create folders or move files could easily be exploited by malicious documents to harm your computer or compromise private data.
Can I use Acrobat Reader to run these custom file-management scripts?
No, Acrobat Reader operates with strict sandbox protections and lacks the elevated privileges required to execute complex folder-level JavaScripts that interact with your local file system.
Is there a way to collect files from users securely?
Yes. Using secure web forms, dedicated document-management portals, or cloud storage request links is much safer and more reliable than attempting to embed file-management logic directly into a local PDF document.




