title: Sign PDF documents digitally with Python
body: <p>I am trying to sign PDF documents with Python and found something called <a href="http://www.kryptokoder.com/download.html" rel="nofollow">MyPDFSigner</a>.</p>
  
  <p>It is well documented, however I found the documentation a bit confusing.
  The only problem I am having is on how to install the <code>mypdfsigner</code> module to run the code to sign a document.</p>
  
  <p>The documentation itself provided a code sample but while the module isn't installed I won't be able to run it:</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>Does anyone already tried this tool and have any advice for me? Or if you know any other Python library that signs PDF files please tell me.</p>
  
  <p>Thanks.</p>