Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Digitally sign PDF files [closed]

I have a digital certificate that identifies an user. I need to use it to Digitally sign pdf files.

Does anyone have an example that does not uses a third party component? I need to get this done but it would be nice to fully understand how things are done.

C# Examples please :)

like image 577
Sergio Avatar asked Dec 18 '08 15:12

Sergio


People also ask

How do I digitally sign a PDF that is locked?

Click the 'Lock' icon in the upper-left corner of the page. Click the link labeled: Permission Details. In the "Security Method' drop down, select: No Security. Enter your unlock password and click the OK button three times.

Why won't my PDF Let me digitally sign?

As you are trying to add the digital signature, you do not require the Fill & Sign tool. The signature field in the form is the reason why "Sign yourself" is greyed out. If the field is already added in the form, you can simply click on the field to add the signature.

Why do my PDF files keep closing?

When Adobe Reader is crashing, it is likely that either your tool build is faulty, or it is outdated. Adobe Acrobat keeps crashing in Windows 10 also when it runs in Protected Mode. The tool includes a repair function that you can use to fix crashing instances.


2 Answers

The open source iTextSharp library will allow you to do this. Here's a post explaining how to digitally sign a pdf file. If you don't want to use a third party library then you can implement it yourself but it could be a tough task -> you can start by reading the pdf specification (8.6MB)

like image 158
Darin Dimitrov Avatar answered Oct 17 '22 18:10

Darin Dimitrov


Proper PDF signing is a very sophisticated task. There exist a number of files that don't conform to the PDF specification (broken xrefs etc) and your code must handle all of them. Then various Acrobat versions treat certain things in signed fields differently. So if you need to do the task (rather than study how it works) you should rely on third-party solution, such as our PDFBlackbox components.

like image 11
Eugene Mayevski 'Callback Avatar answered Oct 17 '22 18:10

Eugene Mayevski 'Callback