from ironpdf import *
# Create an HtmlStamper object to stamp an image onto a PDF
stamper = HtmlStamper("<img src='https://ironpdf.com/img/products/ironpdf-logo-text-dotnet.svg'/>")
stamper.HorizontalAlignment = HorizontalAlignment.Center
stamper.VerticalAlignment = VerticalAlignment.Bottom
stamper.IsStampBehindContent = False
stamper.Opacity = 30
# Load an existing PDF document and apply the stamp to it
pdf = PdfDocument.FromFile("Sample.pdf")
pdf.ApplyStamp(stamper).SaveAs("stampedimage.pdf")
#Create an HtmlStamper object to stamp an image onto a PDF
#Load an existing PDF document and apply the stamp to it
'INSTANT VB TODO TASK: The following line uses invalid syntax:
'from ironpdf import * stamper = HtmlStamper("<img src='https://ironpdf.com/img/products/ironpdf-logo-text-dotnet.svg'/>") stamper.HorizontalAlignment = HorizontalAlignment.Center stamper.VerticalAlignment = VerticalAlignment.Bottom stamper.IsStampBehindContent = @False stamper.Opacity = 30 pdf = PdfDocument.FromFile("Sample.pdf") pdf.ApplyStamp(stamper).SaveAs("stampedimage.pdf")