IRONSOFTWAREHOME
주석
from ironpdf import *

# Load an existing PDF or create a new one
pdf = PdfDocument("existing.pdf")

pageIndex = 0

# Create a TextAnnotation object
annotation = TextAnnotation(pageIndex)
annotation.Title = "This is the major title"
annotation.Subject = "This is a subtitle"
annotation.Contents = "This is the long 'sticky note' comment content..."
annotation.Icon = TextAnnotation.AnnotationIcon.Help
annotation.X = 150
annotation.Y = 200
annotation.Width = 200
annotation.Height = 50
annotation.Opacity = 0.9
annotation.Printable = False
annotation.Hidden = False
annotation.OpenByDefault = True
annotation.ReadOnly = False
annotation.Rotatable = True

# Add the annotation to a specific page and location within the PDF
pdf.Annotations.Add(annotation)

# Save the PDF
pdf.SaveAs("existing.pdf")
pip install ironpdf
주석

주석

IronPDF for Python은 PDF 문서에 인터랙티브 텍스트 주석(스티커 메모라고도 함)을 추가할 수 있어 페이지의 특정 위치에 댓글, 검토 메모 또는 메타데이터를 첨부할 수 있습니다.

시작하기

가져오거나 생성된 PdfDocument을 로드하고 대상 페이지 인덱스로 TextAnnotation을 인스턴스화한 다음, 해당 속성을 구성하고 문서의 Annotations 컬렉션에 추가하여 저장하십시오.

코드 이해하기

  • TextAnnotation(pageIndex): 지정된 0 기반 페이지 인덱스를 대상으로 하는 새 주석을 생성합니다.
  • Title: 주석 팝업의 기본 제목 텍스트입니다.
  • Subject: 주석의 부제목 또는 보조 제목입니다.
  • Contents: 주석의 본문 텍스트 — 주요 댓글 또는 노트 콘텐츠입니다.
  • Icon: 페이지에 표시되는 시각적 아이콘입니다. 옵션에는 Help, Note, Comment, KeyTextAnnotation.AnnotationIcon의 기타 항목이 포함됩니다.
  • X / Y: 페이지상의 주석 앵커 포인트의 위치, 포인트 단위로 표시됩니다.
  • Width / Height: 주석 팝업 상자의 크기입니다.
  • Opacity: 주석의 투명도를 0.0에서 1.0까지 제어합니다.
  • Printable: False 경우, 주석은 인쇄된 출력에 포함되지 않습니다.
  • Hidden: False 경우, 주석이 PDF 뷰어에서 표시됩니다.
  • OpenByDefault: True 경우, 주석 팝업은 PDF를 처음 볼 때 열려 있습니다.
  • ReadOnly: False 경우, 사용자가 PDF 뷰어에서 주석을 편집할 수 있습니다.
  • Rotatable: True 경우, 사용자는 주석을 회전할 수 있습니다. pdf.Annotations.Add(annotation): 문서에 구성된 주석을 추가합니다.

시작할 준비 되셨나요?

버전:2026.6방금 출시

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일 무료 체험판 키를 받으세요.
신용카드나 계정 생성은 필요하지 않습니다.