IRONSOFTWAREHOME
비밀번호, 보안 및 메타데이터
from ironpdf import *

# Open an Encrypted File, alternatively create a new PDF from Html
pdf = PdfDocument.FromFile("encrypted.pdf", "password")

# Edit file metadata
pdf.MetaData.Author = "Satoshi Nakamoto"
pdf.MetaData.Keywords = "SEO, Friendly"
pdf.MetaData.ModifiedDate = Now()

# The following code makes a PDF read only and will disallow copy & paste and printing
pdf.SecuritySettings.RemovePasswordsAndEncryption()
pdf.SecuritySettings.MakePdfDocumentReadOnly("secret-key")
pdf.SecuritySettings.AllowUserAnnotations = False
pdf.SecuritySettings.AllowUserCopyPasteContent = False
pdf.SecuritySettings.AllowUserFormData = False
pdf.SecuritySettings.AllowUserPrinting = PdfPrintSecurity.FullPrintRights

# Change or set the document encryption password
pdf.SecuritySettings.OwnerPassword = "top-secret"  # password to edit the pdf
pdf.SecuritySettings.UserPassword = "sharable"  # password to open the pdf
pdf.SaveAs("secured.pdf")
pip install ironpdf
비밀번호, 보안 및 메타데이터

비밀번호, 보안 및 메타데이터

IronPDF for Python은 PDF 문서의 보안 및 메타데이터 — 작가 정보, 키워드, 비밀번호, 사용자 권한 제한 등을 포괄적으로 제어할 수 있습니다.

시작하기

하나의 PdfDocument을 로드하고, 그 내부의 MetaDataSecuritySettings 객체 속성을 수정한 다음 저장합니다. 메타데이터와 보안 설정은 단일 저장 작업으로 함께 적용됩니다.

메타데이터 속성

  • MetaData.Author: PDF 속성에서 문서 저자 이름을 설정합니다.
  • MetaData.Keywords: 문서와 연결된 SEO 친화적인 키워드를 설정합니다.
  • MetaData.ModifiedDate: 문서가 마지막으로 수정된 시간을 기록합니다. Now()은 현재 타임스탬프를 삽입합니다.

보안 설정

  • SecuritySettings.RemovePasswordsAndEncryption(): 기존 비밀번호와 암호화를 문서에서 모두 제거하고 새 설정을 적용합니다.
  • SecuritySettings.MakePdfDocumentReadOnly(key): 문서 편집을 제한합니다. key은 사용자 입장이 아닌 내부 서명 키입니다.
  • SecuritySettings.AllowUserAnnotations: False일 때, 사용자는 PDF 뷰어에서 주석을 추가할 수 없습니다.
  • SecuritySettings.AllowUserCopyPasteContent: False일 때, PDF에서 텍스트 복사를 방지합니다.
  • SecuritySettings.AllowUserFormData: False일 때 사용자가 양식 필드를 채울 수 없습니다.
  • SecuritySettings.AllowUserPrinting: 인쇄 권한을 제어합니다. PdfPrintSecurity.FullPrintRights은 인쇄를 허용합니다; 다른 값을 사용하여 이를 제한합니다.
  • SecuritySettings.OwnerPassword: PDF 뷰어에서 보안 설정을 편집하거나 변경하기 위해 비밀번호가 필요합니다.
  • SecuritySettings.UserPassword: PDF를 열고 읽기 위해 비밀번호가 필요합니다.
IronPDF for Python으로 PDF 문서를 안전하게 관리하는 방법을 알아보세요!

시작할 준비 되셨나요?

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