How to sign a PDF digitally in C#?

Asked

Viewed 4,278 times

6

I need to digitally sign one PDF previously created.

This PDF is being created through a Web Service who uses the Interop of Office to generate from a Template Office.

I already have access to ICP Certificate Brazil, was purchased through (SERASA or SERPRO) but I can’t find a reference to how to do this without having to abandon all the existing routine of creating the PDF.

Posts I’ve checked but couldn’t adapt myself:

In short, already has generation routine PDF, just want to sign. Does anyone have any tips? I have no experience in this part of information security.

[Edited]

The ideal is not to have to use a paid library since the Office (paid) to generate the PDF. I have access to the source of the generator PDF if the change has to be there.

  • Have you progressed in the subject? Are you using any free library? Or other pay? Which?

1 answer

3

For this purpose you can use the Itextpdf. In this link you find an example of how to sign and verify the signature of a PDF. This is an example with Itextsharp

  • Thanks for the help. Unfortunately the iTextPDF possesses License cost for commercial use for applications that are not open source. I was looking for something that would not increase the cost of developing and deploying the project. Still thanks for the example.

  • 1

    and Itextsharp ?

  • to iTextSharp is a port of iText made by the same company. So it uses the same license system. Even if you look for the project end up seeing that point to iText being from the same company.

  • it’s true.......

Browser other questions tagged

You are not signed in. Login or sign up in order to post.