Introduction

In this article, I will present a simple source code allowing you to digitally sign a PDF document and modify its meta data. I will use the excellent and free port of the iText library: iTextSharp, that can be downloaded here. You'll need Visual Studio 2008 to be able to open and build the project.

If you don’t know what digital signatures are or how they work, you can go here or here, or simply ask Google .

iTextSharp provides a lot of interesting features to create and manipulate PDF documents, but in this article, we will only use the digital signature functions. I will also use some functions to manipulate PKCS#12 certificates. The only thing you need to know here is that our digital signature will use a private key extracted from a PKCS#12 certificate.

Background

I prefer e-signing of an iTextSharp document first, and then doing any change/modification as per requirements.