Instantly share code, notes, and snippets.
use QPDF
brew install qpdf qpdf --decrypt broken.pdf recovery.pdf