qpdf decrypt with password

Shell
qpdf --decrypt --password=12345 encrypted_file.pdf output_file.pdf
Source

Also in Shell: