QPDF

Work with encrypted PDF files

Remove password from PDF Files

qpdf --password=password --decrypt secured.pdf unsecured.pdf