标记新内容
开发人员可编辑任何 PDF 文档,为任何页面添加新内容(或页面)使用 StampHTML 方法。
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
开发人员可编辑任何 PDF 文档,为任何页面添加新内容(或页面)使用 StampHTML 方法。