How to Encrypt Batch PDFs with Unique Passwords
Question details
The user needs a method to secure a batch of PDF documents by applying a different, unique password to each individual file before sending them to distinct recipients.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Distributing personalized, secure PDF documents (such as invoices or reports) to multiple recipients where each person requires a unique password to open their specific file.
- Observed behavior
- Acrobat's standard user interface and Action Wizard only support applying the same password across a batch, lacking native functionality for unique, per-file passwords.
Ensure you have all the target PDF files organized in a single folder and prepare a secure database or spreadsheet containing the file names and their corresponding unique passwords.
Develop a Custom Acrobat Plug-in Using Acrobat SDK
Use the Adobe Acrobat SDK to create a C or C++ plug-in that programmatically assigns unique passwords to each PDF in your batch.
Because the standard Action Wizard in Adobe Acrobat limits you to applying a single, identical password to an entire batch of files, achieving unique password assignments requires custom automation.
By utilizing the Acrobat SDK, developers can build a standalone application or a custom C/C++ plug-in. This custom solution can iterate through the files, fetch individual passwords from an array or database, and securely apply them to the respective PDFs.
Download and install the latest Adobe Acrobat SDK from the official Adobe Developer portal.
Create a new project for a custom C or C++ application or plug-in within your preferred IDE.
Write the logic to pull passwords from an external source (like a database or CSV file) and map them to your PDF filenames.
Use the SDK's security APIs to programmatically open each PDF, apply the designated unique password, and save the encrypted file to your output directory.

Utilize a Standalone Third-Party Automation Tool
Use specialized third-party software designed specifically to batch encrypt PDFs using password mapping from a spreadsheet.
Secure Your Documents Effortlessly with WPS Office
While batch encrypting with unique passwords requires advanced custom scripting, WPS Office offers a highly intuitive, user-friendly interface for securing individual or batch PDFs with strong passwords, advanced permissions, and watermarks without needing to write any code.
- 1. Open Your Document: Launch WPS Office and open the PDF file you wish to secure.
- 2. Access Protection Tools: Navigate to the 'Protect' tab located on the top ribbon.
- 3. Open Encryption Settings: Click on the 'Encrypt' button to reveal the document security and password settings.
- 4. Set Passwords: Check 'Set Open Password', type your desired password, configure any necessary editing permissions, and click 'Confirm' to save the protected PDF.

Frequently Asked Questions
Can I use Acrobat's Action Wizard to set unique passwords for a batch of PDFs?
No. While the Action Wizard in Adobe Acrobat allows you to batch process PDFs and apply security settings, it only supports applying the exact same password to all the files in that specific batch.
Are there non-programming ways to batch encrypt PDFs with different passwords?
Yes. If you cannot write a custom plug-in, you can use specialized third-party standalone tools. These tools usually allow you to upload a CSV or Excel file containing the filenames and their unique passwords, automating the mapping process without requiring you to write code.
Can I protect PDFs using JavaScript in Acrobat?
Acrobat JavaScript has strict security restrictions when it comes to applying document-level security and saving files automatically. For robust batch encryption with unique passwords, a C/C++ plug-in via the Acrobat SDK or a dedicated external standalone application is the recommended approach.




