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

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

// Get file metadata
System.Collections.Generic.List<string> metadatakeys = pdf.MetaData.Keys(); // returns {"Title", "Creator", ...}

// Remove file metadata
pdf.MetaData.RemoveMetaDataKey("Title");
metadatakeys = pdf.MetaData.Keys(); // return {"Creator", ...} // title was deleted

// Edit file metadata
pdf.MetaData.Author = "Satoshi Nakamoto";
pdf.MetaData.Keywords = "SEO, Friendly";
pdf.MetaData.ModifiedDate = System.DateTime.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 = IronPdf.Security.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");
NuGet 다운로드
PM > Install-Package IronPdf
비밀번호, 보안 및 메타데이터

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

IronPDF? ????? ??? PDF ?? ??? ????, PDF ?????, ??, ?? ?? ??? ???? ??? ? ??? ?????. IronPDF? ??, ?? ? ????? ??? ?? PDF ??? ?? ??? ?? ??? ?? ??? ?? ??? ??? ? ????. ?? ?? SecuritySettings ? MetaData ?? ???? ?????. PDF ?? ??, ?? ?? ??, 128?? ???, ?? ?? ?? ??? ?????.

??? ?? ?????? MetaData ???? ???? ??? PDF ????? ??? ????? ??? ?? ???? ?????. ???, ???, ?? ?? ?? ??? ? ????. ??? ?? ?? ???? ??? ? ??? ?? ??, ?? ?? ??, ?? ?? ?? ?? ?? ?????.

PDF ??? ?? ??? ??? ????? ?? ?? PDF ??? ????? ? PDF ??? ???? ???. ???? PDF? ?? ? ??? ??? ???? ??? ??? ?? PDF ??? ??????. PDF? ??? ? pdf.MetaData.Keys? ???? PDF? ?? ?????? ?????. ?? PDF ????? ?? ????? RemoveMetaDataKey ???? ?????. ? ????? ?? ????? pdf.MetaData.metadataField(?: pdf.MetaData.Keywords)? ? ?? ???? ???. Title ? Keywords? ?? ????? ???? ??? ??, ModifiedDate ???? ??/?? ?? ?????.

???? SecuritySettings ???? ???? ? ?? ??? ?????. ????? ??? ??? ??? ? ????. ?? ?? ???? ? PDF ??? ??? ?? ??? ???? ??? ? ????. ??? ??? ?????? pdf.SecuritySettings ?? ????? ??? ???? ???. ?? ?? MakePdfDocumentReadOnly ???? PDF ??? ?? ???? ???? ???? 128??? ??????. SecuritySettings? ?? ???? ??? ?????:

  • AllowUserAnnotations: 사용자가 PDF에 주석을 달 수 있는지 여부를 제어합니다.
  • AllowUserPrinting: 문서에 대한 인쇄 권한을 제어합니다.
  • AllowUserFormData: 사용자가 양식을 채울 수 있는지 여부에 대한 권한을 설정합니다.
  • OwnerPassword: 다른 보안 설정을 비활성화하거나 활성화하는 데 사용되는 PDF의 소유자 암호를 설정합니다.
  • UserPassword: 문서를 열거나 인쇄하기 위해 입력해야 하는 PDF의 사용자 암호를 설정합니다.

PDF ??? ??? ?? ?????, ?? ? ?? ??? ??? ? pdf.SaveAs ???? ???? PDF? ??? ??? ?????.

IronPDF? ???? PDF ?????? ??? ?? ????
GitHub에서 보기

시작할 준비 되셨나요?

NuGet 다운로드 수 22,471,552버전:2026.11방금 출시