python系列:python pdf 加密无法复制读取解决




python pdf 加密无法复制读取解决

加密分两种:

1、打开文件需要密码的
2、复制编辑需要权限密码的

pdf哈希值获取(解决1)

#!python3.8
# coding=utf-8
'''
 Author: Sanfor Chow
 Date: 2022-03-29 17:02:43
 LastEditors: Sanfor Chow
 LastEditTime: 2022-03-29 17:02:43
 FilePath: /knowledgeGraph/demo/pdf2john.py
'''

# Copyright (c) 2013 Shane Quigley, < shane at softwareontheside.info >

# Permission is hereby granted, free of char
posted @ 2024-07-06 11:26  坦笑&&life  阅读(37)  评论(0)    收藏  举报  来源