Skip to content

systechsolutions/PdfSign

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PdfSign

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

UsageCancel changes

  • 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. https://www.c-sharpcorner.com/blogs/digital-signature-using-any-dsc-token-in-c-sharp

https://www.py4u.net/discuss/712398

https://stackoverflow.com/questions/59236698/how-to-automatically-enter-the-password-when-signing-in-itextsharp https://stackoverflow.com/questions/48450747/windows-randomly-request-smartcard-token-pin-when-multiple-processes-of-my-appli

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

  • C# 100.0%