Stamping New Content
Developers may edit any PDF document by adding new content to any page (or pages) using the StampHTML method for PDF management.
using IronPdf; using IronPdf.Editing; var stamper = new HtmlStamper("<img src='https://ironpdf.com/img/products/ironpdf-logo-text-dotnet.svg'/>") { HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Bottom, IsStampBehindContent = false, Opacity = 30 }; var pdf = PdfDocument.FromFile("Sample.pdf"); pdf.ApplyStamp(stamper).SaveAs("stamped_image.pdf");
Imports IronPdf Imports IronPdf.Editing Private stamper = New HtmlStamper("<img src='https://ironpdf.com/img/products/ironpdf-logo-text-dotnet.svg'/>") With { .HorizontalAlignment = HorizontalAlignment.Center, .VerticalAlignment = VerticalAlignment.Bottom, .IsStampBehindContent = False, .Opacity = 30 } Private pdf = PdfDocument.FromFile("Sample.pdf") pdf.ApplyStamp(stamper).SaveAs("stamped_image.pdf")
Install-Package IronPdf
Developers may edit any PDF document by adding new content to any page (or pages) using the StampHTML method for PDF management.
10 .NET API products for your office documents