Quickly remove a password from a pdf.

qpdf --password='your password here' --decrypt locked.pdf unlocked.pdf

(I wouldn't qpdf otherwise so, for me, first a quick nix-shell p qpdf to get a shell with qpdf installed.)