Stamping New Content

Developers may edit any PDF document by adding new content to a page using the HtmlStamper class together with the ApplyStamp method for PDF management.

Below is an example of how you can use the HtmlStamper class with IronPDF in C#:

Key Points:

  • HtmlStamper Class: Defines the HTML content to stamp along with positioning options such as HorizontalAlignment, VerticalAlignment, IsStampBehindContent, and Opacity.
  • ApplyStamp Method: PdfDocument.ApplyStamp(stamper) applies the configured stamper to the loaded PDF and returns the modified document, which can then be saved with SaveAs.
  • Functionality: The example loads an existing PDF with PdfDocument.FromFile, stamps the specified HTML content (here, an image) onto the page, and saves the result to a new PDF file.

Learn to Stamp Text & Images on PDFs with IronPDF

Ready to Get Started?
Nuget Downloads 19,936,792 | Version: 2026.7 just released
Still Scrolling Icon

Still Scrolling?

Want proof fast? PM > Install-Package IronPdf
run a sample watch your HTML become a PDF.