Fix Password-Protected PDF Opening in Chrome but Not Adobe Acrobat
Question details
A generated PDF accepts the password in Google Chrome but throws an incorrect password error in Adobe Acrobat and Microsoft Edge.

- Product
- Adobe Acrobat, FPDF
- Device & OS
- not provided
- Scenario
- Opening a PHP/FPDF generated password-protected PDF file in different PDF viewer applications.
- Observed behavior
- The PDF opens successfully in Google Chrome but rejects the correct password in Adobe Acrobat and Microsoft Edge due to encryption compatibility issues.
Ensure you are entering the exact case-sensitive password and try generating a test PDF file with a standard alphanumeric (ASCII) password to rule out character encoding conflicts.
Verify FPDF Encryption and Compatibility Settings
Address the root cause by adjusting the PHP/FPDF generation parameters to ensure broad compatibility across all strict PDF viewers.
The issue usually stems from how the FPDF library encrypts the file. Different PDF viewers handle encryption standards differently. Google Chrome's built-in PDFium engine is highly tolerant of non-standard structures, whereas Adobe Acrobat strictly enforces standard ISO PDF encryption compliance.
Ensure you are using the latest version of the FPDF library, as older versions may have known bugs with password encryption and viewer compatibility.
Test generating the PDF with a simple alphanumeric (ASCII) password to rule out special character or UTF-8 encoding conflicts in the script.
Ensure that the password encoding in your PHP script matches the expected standard, verifying whether it requires ISO-8859-1 rather than UTF-8.
Run the generated file through an online PDF validator to check for structural anomalies, corrupted xref tables, or non-standard encryption flags.

Re-Save the PDF Using Google Chrome
A quick workaround if you do not have immediate access to the PHP source code to fix the underlying FPDF generation issue.
Open and Manage Password-Protected PDFs with WPS PDF
WPS Office includes a highly compatible PDF viewer that robustly handles various encryption methods. You can easily open, view, and modify secure PDFs without the strict formatting errors sometimes triggered by Adobe Acrobat.
- 1. Download and Install: Get WPS Office from the official website and install it on your computer.
- 2. Open the PDF: Right-click your problematic PDF, select 'Open with', and choose WPS Office.
- 3. Enter the Password: When prompted, enter your document password. WPS PDF will smoothly decrypt and display the contents.
- 4. Re-secure or Edit: Navigate to the 'Protect' tab to modify encryption settings, edit text, or remove the password for better broad compatibility.

Frequently Asked Questions
Why does a password-protected PDF open in Chrome but not in Adobe Acrobat?
Google Chrome uses a highly tolerant PDF viewer (PDFium) that can bypass minor structural or encryption errors. Adobe Acrobat strictly enforces ISO PDF standards, meaning it will reject files with improperly encoded passwords or non-compliant encryption layers often generated by third-party scripts.
How can I fix FPDF password encryption issues in my PHP code?
Ensure you are using standard ASCII characters for your passwords, as special characters or UTF-8 encoding can cause decryption failures in strict viewers. Updating the FPDF library to its newest release can also resolve known encryption bugs.
Is there a way to remove the password from the corrupted PDF file?
Yes. You can open the PDF in Google Chrome, which successfully accepts the password, and use the 'Print to PDF' feature. This generates and saves a new, unencrypted copy of the document that is broadly compatible.
Does WPS Office support opening password-protected PDFs?
Yes, WPS Office includes a powerful PDF reader that natively supports standard PDF password encryption. It provides a robust alternative for viewing, editing, and managing secure PDF files when other viewers fail.




