Ghostscript, a powerful PDF/PostScript processor, can decrypt PDFs when you know the password:
pdfcpu decrypt -upw <password> locked.pdf unlocked.pdf pdf password remove github top
Do you need to unlock a or automate a large batch of documents? a powerful PDF/PostScript processor
Below are top-rated open-source tools on GitHub for handling PDF password removal and a "paper" style summary of how these technologies work. Top GitHub PDF Password Tools pdf password remove github top
piotrmaslak/pdf-crack Language: Python Use Case: You don't know the password.
Show you how to use to run these tools for free in the cloud? Remove password from Password Protected PDF file #1434