PikePDF或许可以去除PDF密码
https://stackoverflow.com/questions/65177156/how-do-i-remove-passwords-of-some-of-all-the-pdf-files-in-a-directory-with-pythoimport pikepdf
pdf = pikepdf.open('unextractable.pdf')
pdf.save('extractable.pdf')
pdf = pikepdf.open(path, password='xxxxxxxxx', allow_overwriting_input=True)
页:
[1]