willsonlincake 发表于 2022-4-6 14:29:38

PikePDF或许可以去除PDF密码

https://stackoverflow.com/questions/65177156/how-do-i-remove-passwords-of-some-of-all-the-pdf-files-in-a-directory-with-pytho
import pikepdf

pdf = pikepdf.open('unextractable.pdf')
pdf.save('extractable.pdf')

pdf = pikepdf.open(path, password='xxxxxxxxx', allow_overwriting_input=True)
页: [1]
查看完整版本: PikePDF或许可以去除PDF密码