
How to add an image stamp in PDF using C#
Recently, certified documents with digital stamps have become increasingly important. These stamps contain text or images that indicate the confidentiality or legality of an electronic file. If you need to add digital stamps to your PDF documents, you are in the right place. This post explains how to add an image stamp in PDF using C#.
The article covers:
- .NET image stamp creator library installation
- Create image stamps in PDF
- Control the display quality of PDF image stamp
Installing C# image stamp creator library
We use Conholdate.Total for .NET to add image stamps to PDF programmatically. Download the DLL or install the PDF stamp creator library via NuGet.
Install-Package Conholdate.Total
Create image stamps in PDF programmatically in C#
Follow these steps to add image stamps to specific PDF pages:
- Load the PDF document with the Document class.
- Create an ImageStamp object.
- Set the stamp’s position, size, and opacity.
- Add the stamp to a page using the AddStamp(Stamp stamp) method.
- Save the result with Save(string outputFileName).
The code below demonstrates how to add image stamps in PDF using C#.
The image shows the input and output PDFs side by side.

Adding an image stamp in PDF using C#
Specify image stamp quality using C#
To control stamp quality, use these steps:
- Load the PDF with the Document class.
- Initialise an ImageStamp object.
- Set the Quality property to a value between 0 and 100.
- Insert the stamp on a page via AddStamp(Stamp stamp).
- Save the PDF with Save(string outputFileName).
The following C# code shows how to adjust image stamp quality.
Get a free license
You can acquire a free temporary license to test the API without evaluation limitations.
Conclusion
We have shown how to add an image stamp in PDF documents using a C# image stamp creator API and how to adjust stamp quality. Visit the documentation to explore additional features.
Ask a question
Post your questions or queries on our forum.