Skip to content
/ PdfSign Public

Tool to add e-signature to pdf document with iTextSharp

License

Notifications You must be signed in to change notification settings

danikf/PdfSign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PdfSign

Tool to add invisible e-signature to pdf document with iTextSharp library

Usage

  • 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

Configuration is stored in app.config

  • certSubjectName - initial and unique part of certificate subject
  • reason - will be written to the pdf file
  • location - will be written to the pdf file
  • allowInvalidCertificate - true/false. Allows you to use invalid certificate in test environment
  • backupOriginalFile - true/false. If allowed, original (not signed) file copy is backuped as *.original

Result codes

  • 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.

About

Tool to add e-signature to pdf document with iTextSharp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages