on-internet
← Community

Is there a browser-only JavaScript solution to unlock a password-protected PDF?

Stack Overflow ·

I’m trying to unlock a password-protected PDF entirely in the browser using JavaScript (no server). What I’ve tried: pdf-lib PDFDocument.load(bytes, { password }) → throws “Input document is encrypted” ignoreEncryption: true only works for permission-restricted PDFs, not password-protected ones Password is correct and works in Chrome / Adobe Reader Goal is to load the PDF, copy all pages into a new document, and download it without encryption Question: Is there any browser-based JavaScript library that can actually decrypt and re-save a password-protected PDF when the password is known, or is

Comments

Sign in or sign up to comment and upvote.

No comments yet.