This tip serves for multiple OSes, but I've used macos and installed qpdf through homebrew. qpdf --decrypt --password=xxxxx encrypted-filename.pdf decrypted-filename.pdf Source