當(dāng)前位置:
首頁(yè) >
使用python解密pdf
發(fā)布時(shí)間:2023/12/3
33
豆豆
默认站点
收集整理的這篇文章主要介紹了
使用python解密pdf
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1.安裝pikepdf包: pip install pikepdf
前提:能打開pdf查看
可以解除不能復(fù)制等功能
2. 代碼
# pdf解密# 1.安裝pikepdf包: pip install pikepdfimport pikepdf # opens a PDF with restrictive editing enabled, but that still # allows printing. def pdf_Crack(startFile,endFile):with pikepdf.open(startFile) as pdf:pdf.save(endFile)return endFile# 2.修改自己文件的位置 start = '1.pdf' end = 'crack1.pdf' pdf_Crack(start, end)總結(jié)
以上是默认站点為你收集整理的使用python解密pdf的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PDF解密PDFPasswordRemo
- 下一篇: 镜像VirtualBox 下安装 Cen