hi
how to add digital signatures in pdf file in c#
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Bharat VasantRank #2,126 · 671 reputationPosted Sep 3, 2019, 7:42 AM EDT
Gajendra JangidRank #157 · 14.9K reputationPosted May 26, 2019, 10:00 PM EDT
Atir TahirRank #3,495 · 415 reputationPosted Jan 12, 2020, 5:59 AM EST
Leon DRank #851 · 2.6K reputationPosted May 26, 2019, 4:55 PM EDT
Mohamed AbedallahRank #2,074 · 697 reputationPosted May 30, 2019, 4:29 AM EDT
To sign a file, you can use the PDFFile.SignDocument method. The code looks like this:
Note that the “signatureFileName” is the file containing the digital signature. This should be a valid PFX file and cannot be null.
To check if there's a signature in an existing PDF file, the code will be similar to this:
https://www.leadtools.com/help/leadtools/v20/dh/pdf/pdfsignature.html
Chittaranjan SwainRank #216 · 11.3K reputationPosted Aug 4, 2019, 11:11 PM EDT