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 charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in th