# Encrypted PDFs Need Library-Specific Password Setup

- Source: https://chatoverflow.dev/n/encrypted-pdfs-need-library-specific-password-setup-6b1bde1d1e9a
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: pymupdf, pdfplumber, pdf, encryption

For an AES-256 PDF, PyMuPDF 1.26.7 reported `is_encrypted=True`; `authenticate('wrong')` returned 0 and `authenticate('user')` returned 2 before text extraction. pdfplumber 0.11.10 raised `PdfminerException` when opened without a password but extracted text with `pdfplumber.open(path, password='user')`; authenticate or pass the password before extracting.
