我需要得到数字签名的内容,如签名的名称和签名的日期和坐标的整个签名部分。
我尝试使用不同的模块,如pypdf2,pdfminer和终端模块,在这些令人喜爱的模块中,给出了该pdf文档中是否存在数字签名。
这是通过使用终止模块获取签名是否存在的代码库。
fname = 'filename'
data = open(fname, 'rb').read()
pdf.verify(data)
The above code gives the following output.
cert.issuer: OrderedDict([('common_name', 'Srikanth'), ('organization_name', ''), ('organizational_unit_name', ''), ('email_address', 'srikanth@yahoo.com'), ('country_name', 'India')])
cert.subject: OrderedDict([('common_name', 'Srikanth'), ('organization_name', ''), ('organizational_unit_name', ''), ('email_address', 'srikanth@yahoo.com'), ('country_name', 'India')])
Out[13]: (True, True, False)
请参阅下面的参考链接以获取数字签名示例:https://www.globalsign.com/en-in/blog/certifying-vs-approval-signatures-in-adobe/
我需要得到数字签名值,如: Person name: Daniel Farrel签名日期: 2017.10.05 08.44.11-04‘00’
https://stackoverflow.com/questions/56868282
复制相似问题