Signieren Sie PDF-Dokumente digital mit Python
Ich versuche, PDF-Dokumente mit Python zu signieren und habe etwas mit dem Namen @ gefunde MyPDFSigner.
Es ist gut dokumentiert, aber ich fand die Dokumentation etwas verwirrend. Das einzige Problem, das ich habe, ist auf, wie man das @ anbrinmypdfsigner
-Modul zum Ausführen des Codes zum Signieren eines Dokuments.
Die Dokumentation selbst lieferte ein Codebeispiel, aber solange das Modul nicht installiert ist, kann ich es nicht ausführen:
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, MyPDFSigner"
confFile = "" # defaults to /usr/local/mypdfsigner/mypdfsigner.conf if empty
timestamp = True
print mypdfsigner.sign(inputPath, outputPath, location, reason, contactInfo, certify, visible, title, author, subject, keywords, confFile, timestamp)
Hat schon jemand dieses Tool ausprobiert und einen Rat für mich? Wenn Sie eine andere Python-Bibliothek kennen, die PDF-Dateien signiert, teilen Sie mir dies bitte mit.
Vielen Dank