python给pdf加图片签名,使用Python对PDF文档进行数字签名

本文介绍了如何使用Python库MyPDFSigner为PDF文档添加图片签名。作者在尝试该库时遇到了安装问题,分享了解决方案,包括在Windows上将mypdfsigner.pyd文件复制到Python的site-packages目录,并将安装路径添加到环境变量中。此外,还强调了需要先通过图形应用创建配置文件。
摘要由CSDN通过智能技术生成

I am trying to sign PDF documents with Python and found something called MyPDFSigner.

It is well documented, however I found the documentation a bit confusing.

The only problem I am having is on how to install the mypdfsigner module to run the code to sign a document.

The documentation itself provided a code sample but while the module isn't installed I won't be able to run it:

inputPath = "/tmp/input.pdf"

outputPath = "/tmp/output.pdf"

location = "Chicago, Illinois"

reason = "Demo"

contactInfo = "+1 555-555-5555"

certify = True

visible = True

title = "Signing with MyPDFSigner"

author = "KryptoKoder"

subject = "Python Extension"

keywords = "PKCS#12, PDF, MyPDFS

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值