Tool to add invisible e-signature to pdf document with iTextSharp library
- Import your certificate into windows certstore as exportable.
- Update app.config
- Sign pdf:
pdfsign.exe mydoc.pfd
- NOTE: can be used in batch (see result codes)
Configuration is stored in app.config
certSubjectName
- initial and unique part of certificate subjectreason
- will be written to the pdf filelocation
- will be written to the pdf fileallowInvalidCertificate
- true/false. Allows you to use invalid certificate in test environmentbackupOriginalFile
- true/false. If allowed, original (not signed) file copy is backuped as *.original
- 0 - success
- 1 - invalid parameters
- 2 - pdf file not found
- 4 - other error (usualy certificate not found)
NOTE: This tool is just publication of my older work - so it uses a little bit older version of iTextSharp.