IRONSOFTWAREHOME
HTML 콘텐츠를 효율적으로 추가하는 방법
using IronPdf;
using IronPdf.Editing;
using System;

// Use HtmlStamper to stamp Html onto pdf
HtmlStamper htmlStamper = new HtmlStamper("<h1>Html stamp</h1>")
{
    VerticalOffset = new Length(-200, MeasurementUnit.Pixel),
    HorizontalOffset = new Length(-200, MeasurementUnit.Pixel),
};

// Use TextStamper to stamp text with custom font onto pdf
TextStamper textStamper = new TextStamper("Hello World! Stamp One Here!")
{
    FontFamily = "Bungee Spice",
    UseGoogleFont = true,
    FontSize = 30,
};

// Use ImageStamper to stamp images onto pdf
Uri filepath = new Uri(@"C:\assets\logo.png"); // absolute path or URL
ImageStamper imageStamper = new ImageStamper(filepath)
{
    VerticalAlignment = VerticalAlignment.Top,
    MinWidth = new Length(20),
    MinHeight = new Length(20),
};

// Use BarcodeStamper to stamp QR code/Barcode onto pdf
BarcodeStamper barcodeStamper = new BarcodeStamper("IronPDF", BarcodeEncoding.Code128)
{
    Height=75,
    VerticalAlignment = VerticalAlignment.Bottom,
    HorizontalAlignment = HorizontalAlignment.Left,
};

Stamper[] stamps = { htmlStamper, textStamper, imageStamper, barcodeStamper };

var pdf = PdfDocument.FromFile("Unstamped.pdf");
pdf.ApplyMultipleStamps(stamps);
pdf.SaveAs("Stamped.pdf");
Imports IronPdf
Imports IronPdf.Editing
Imports System

' Use HtmlStamper to stamp Html onto pdf
Dim htmlStamper As New HtmlStamper("<h1>Html stamp</h1>") With {
    .VerticalOffset = New Length(-200, MeasurementUnit.Pixel),
    .HorizontalOffset = New Length(-200, MeasurementUnit.Pixel)
}

' Use TextStamper to stamp text with custom font onto pdf
Dim textStamper As New TextStamper("Hello World! Stamp One Here!") With {
    .FontFamily = "Bungee Spice",
    .UseGoogleFont = True,
    .FontSize = 30
}

' Use ImageStamper to stamp images onto pdf
Dim filepath As New Uri("C:\assets\logo.png") ' absolute path or URL
Dim imageStamper As New ImageStamper(filepath) With {
    .VerticalAlignment = VerticalAlignment.Top,
    .MinWidth = New Length(20),
    .MinHeight = New Length(20)
}

' Use BarcodeStamper to stamp QR code/Barcode onto pdf
Dim barcodeStamper As New BarcodeStamper("IronPDF", BarcodeEncoding.Code128) With {
    .Height = 75,
    .VerticalAlignment = VerticalAlignment.Bottom,
    .HorizontalAlignment = HorizontalAlignment.Left
}

Dim stamps As Stamper() = {htmlStamper, textStamper, imageStamper, barcodeStamper}

Dim pdf = PdfDocument.FromFile("Unstamped.pdf")
pdf.ApplyMultipleStamps(stamps)
pdf.SaveAs("Stamped.pdf")
NuGet Download
PM > Install-Package IronPdf
HTML 콘텐츠를 효율적으로 추가하는 방법

HTML 콘텐츠를 효율적으로 추가하는 방법

GitHub에서 보기

시작할 준비 되셨나요?

Nuget Downloads 20,756,830버전:2026.7방금 출시

Key in blue circle

무료 30일 체험 키를 즉시 받으세요.

Your trial license will be sent to your email address

제한 없음. 100% 무제한 이용. 신용카드 불필요.

bullet_checked신용카드나 계정 생성은 필요하지 않습니다.제한 없음. 100% 무제한 이용. 신용카드 불필요.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
무료 라이브 데모를 예약하세요
Booking Badge

전 세계 수백만 엔지니어들이 신뢰하는 제품입니다.

Iron Software의 고객 로고
부담 없는 무료 상담을 받아보세요
아래 양식을 작성하시거나 sales@ironsoftware.com으로 이메일을 보내주세요.
고객님의 정보는 항상 비밀로 유지됩니다.
전 세계 수백만 엔지니어들이 신뢰하는 제품입니다.
Iron Software의 고객 로고
지금 바로 30일 무료 체험판 키를 받으세요.
신용카드나 계정 생성은 필요하지 않습니다.