Het pakket hier lijkt een extensie te bieden voor het ondertekenen van PDF's met Ruby. Het is niet gratis, maar het lijkt erop dat het een native robijn-interface biedt.
Hier is hoe te gebruiken als in ruby (nadat het is geïnstalleerd):
require 'mypdfsigner'
include MyPDFSigner
inputPath = "/tmp/input.pdf"
outputPath = "/tmp/output.pdf"
location = "Chicago"
reason = "Demo"
contactInfo = "+1 555-555-5555"
certify = false # not supported yet
visible = true
title = "Signing with MyPDFSigner"
author = "KryptoKoder"
subject = "Ruby Extension"
keywords = "PKCS#12, MyPDFSigner, PDF"
confFile = "" # defaults to /usr/local/mypdfsigner/mypdfsigner.conf if empty
timestamp = true
puts mypdfsigner_sign(inputPath, outputPath, location, reason, contactInfo, certify, visible, title, author, subject, keywords, confFile, timestamp)
Er is ook een opdrachtregelinterface, zodat u deze indien nodig kunt scripten, evenals een desktop-app.