我需要将 GitHub README.md 文件转换为 pdf。我尝试了很多模块,但它们都不能正常工作。是否有任何新工具可以获取确切的 pdf 格式。本网站提供了良好的pdf转换格式。http://www.markdowntopdf.com/ 我需要这种格式的命令行工具。
我需要获取数字签名的签名内容,例如签名名称和签名日期以及整个签名部分的坐标。
我尝试使用不同的模块,如 pypdf2、pdfminer 和 endesive 模块,这些 endesive 模块给出了该 pdf 文档中是否存在数字签名。
这是使用 endesive 模块获取签名是否存在的代码库。
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)
Run Code Online (Sandbox Code Playgroud)
请参阅以下参考链接以获取示例数字签名: https://www.globalsign.com/en-in/blog/certifying-vs-approval-signatures-in-adobe/
我需要获取数字签名值,例如: 人名:Daniel Farrel 签名日期:2017.10.05 08.44.11 -04'00'