新增內容戳記
開發人員可以通過向任何頁面添加新內容來編輯任何 PDF 文件。(或頁面)使用該用於 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 文件。(或頁面)使用該用於 PDF 管理的 StampHTML 方法.