IRONSOFTWAREHOME
주석
using IronPdf;

// Create a new PDF or load and edit an existing document.
var pdf = PdfDocument.FromFile("existing.pdf");

int pageIndex1 = 0;
int pageIndex2 = 1;

// Create a PDF annotation object on a specified page index
var annotation1 = new IronPdf.Annotations.TextAnnotation(pageIndex1)
{
    Title = "This is the major title 1",
    Contents = "This is the long 'sticky note' comment 1st content...",
    X = 150,
    Y = 200,
    Width = 200,
    Height = 50,
    Opacity = 0.9,
    Printable = false,
    Hidden = false,
    OpenByDefault = true,
    ReadOnly = false,
    Rotatable = true
};

var annotation2 = new IronPdf.Annotations.TextAnnotation(pageIndex2)
{
    Title = "This is the major title 2",
    Contents = "This is the long 'sticky note' comment 2nd content...",
    X = 100,
    Y = 150,
    Width = 250,
    Height = 150,
    Opacity = 0.9,
    Printable = false,
    Hidden = false,
    OpenByDefault = true,
    ReadOnly = false,
    Rotatable = true
};

var annotation3 = new IronPdf.Annotations.TextAnnotation(pageIndex2)
{
    Title = "This is the major title 3",
    Contents = "This is the long 'sticky note' comment 3rd content...",
    X = 200,
    Y = 150,
    Width = 150,
    Height = 50,
    Opacity = 0.9,
    Printable = false,
    Hidden = false,
    OpenByDefault = true,
    ReadOnly = false,
    Rotatable = true
};

// Add the annotation "sticky note" within any new or existing PDF.
pdf.Annotations.Add(annotation1); // annotation1 index is 0.
pdf.Annotations.Add(annotation2); // annotation2 index is 1.
pdf.Annotations.Add(annotation3); // annotation3 index is 2.

// Remove a single annotation with specified index
pdf.Annotations.RemoveAt(1); // annotation2 is removed, annotation3 index becomes 1.

// Remove all annotaions on a specified page
pdf.Annotations.RemoveAllAnnotationsForPage(0); // remove all annotaion on page 1, annotation3 index becomes 0.

// Edit a single annotation with specified index
pdf.Annotations[0].Title = "new title for annotation 3";
pdf.Annotations[0].Contents = "This is new comment content of annotation 3";

// Remove all annotaions on the document
pdf.Annotations.Clear();

pdf.SaveAs("existing.pdf");
Imports IronPdf

' Create a new PDF or load and edit an existing document.
Dim pdf = PdfDocument.FromFile("existing.pdf")

Dim pageIndex1 As Integer = 0
Dim pageIndex2 As Integer = 1

' Create a PDF annotation object on a specified page index
Dim annotation1 = New IronPdf.Annotations.TextAnnotation(pageIndex1) With {
    .Title = "This is the major title 1",
    .Contents = "This is the long 'sticky note' comment 1st content...",
    .X = 150,
    .Y = 200,
    .Width = 200,
    .Height = 50,
    .Opacity = 0.9,
    .Printable = False,
    .Hidden = False,
    .OpenByDefault = True,
    .ReadOnly = False,
    .Rotatable = True
}

Dim annotation2 = New IronPdf.Annotations.TextAnnotation(pageIndex2) With {
    .Title = "This is the major title 2",
    .Contents = "This is the long 'sticky note' comment 2nd content...",
    .X = 100,
    .Y = 150,
    .Width = 250,
    .Height = 150,
    .Opacity = 0.9,
    .Printable = False,
    .Hidden = False,
    .OpenByDefault = True,
    .ReadOnly = False,
    .Rotatable = True
}

Dim annotation3 = New IronPdf.Annotations.TextAnnotation(pageIndex2) With {
    .Title = "This is the major title 3",
    .Contents = "This is the long 'sticky note' comment 3rd content...",
    .X = 200,
    .Y = 150,
    .Width = 150,
    .Height = 50,
    .Opacity = 0.9,
    .Printable = False,
    .Hidden = False,
    .OpenByDefault = True,
    .ReadOnly = False,
    .Rotatable = True
}

' Add the annotation "sticky note" within any new or existing PDF.
pdf.Annotations.Add(annotation1) ' annotation1 index is 0.
pdf.Annotations.Add(annotation2) ' annotation2 index is 1.
pdf.Annotations.Add(annotation3) ' annotation3 index is 2.

' Remove a single annotation with specified index
pdf.Annotations.RemoveAt(1) ' annotation2 is removed, annotation3 index becomes 1.

' Remove all annotations on a specified page
pdf.Annotations.RemoveAllAnnotationsForPage(0) ' remove all annotations on page 1, annotation3 index becomes 0.

' Edit a single annotation with specified index
pdf.Annotations(0).Title = "new title for annotation 3"
pdf.Annotations(0).Contents = "This is new comment content of annotation 3"

' Remove all annotations on the document
pdf.Annotations.Clear()

pdf.SaveAs("existing.pdf")
NuGet Download
PM > Install-Package IronPdf
주석

주석

PDF 주석 기능을 사용하면 "포스트잇"처럼 PDF 페이지에 간단한 메모를 추가할 수 있습니다. PdfDocument.Annotations.Add 메소드 및 IronPdf.Annotations.TextAnnotation 클래스는 주석을 프로그래밍 방식으로 추가할 수 있도록 합니다. 고급 텍스트 주석 기능에는 색상, 크기, 투명도, 아이콘 및 편집 기능이 포함됩니다.

IronPDF를 사용하여 PDF에 주석을 추가하는 방법을 알아보세요.
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일 무료 체험판 키를 받으세요.
신용카드나 계정 생성은 필요하지 않습니다.