비밀번호, 보안 및 메타데이터 IronPDF는 개발자에게 강력한 PDF 보안 옵션을 제공하며, PDF 메타데이터, 암호, 권한 등을 사용자 지정하고 설정할 수 있도록 지원합니다. IronPDF의 암호, 보안 및 메타데이터 옵션을 사용하면 PDF 문서의 요구 사항에 맞게 사용자 지정 권한 및 보안 수준을 만들 수 있습니다. 이는 SecuritySettings 및 MetaData 클래스와 같은 클래스를 사용함으로써 가능합니다. PDF 문서를 인쇄할 수 없도록 제한하거나, 읽기 전용으로 설정하거나, 128비트 암호화를 적용하거나, PDF 문서에 암호를 설정하는 등의 옵션이 있습니다. 사용자 지정 메타데이터를 설정하려면 다양한 PDF 메타데이터 옵션에 액세스하기 위해 MetaData 클래스를 구현하고 사용자 지정 값으로 설정해야 합니다. 여기에는 저자 변경, 키워드 변경, 데이터 수정 등이 포함됩니다. 사용자 지정 보안 설정에는 사용자 및 소유자 암호 설정, 인쇄 권한 설정, 읽기 전용 모드 설정 등이 포함됩니다. ## PDF 암호, 메타데이터 및 보안 설정을 위한 5단계 var pdf = PdfDocument.FromFile("encrypted.pdf", "password"); System.Collections.Generic.List<string> metadatakeys = pdf.MetaData.Keys; var metadatakeys = pdf.MetaData.Keys; pdf.MetaData.Author = "Satoshi Nakamoto"; pdf.SecuritySettings.MakePdfDocumentReadOnly("secret-key"); PDF 문서의 보안 설정을 사용자 지정하려면 먼저 기존 PDF 파일을 불러오거나 새 PDF 파일을 만들어야 합니다. 여기서는 암호로 보호된 기존 PDF 문서를 불러왔습니다. 이 문서에는 PDF 문서를 열기 위해 필요한 암호가 입력되어 있습니다. Once the PDF is loaded, we then use pdf.MetaData.Keys to get the PDF's current metadata. To remove existing PDF metadata values, use the RemoveMetaDataKey method. To begin setting new metadata values, use pdf.MetaData.metadataField (e.g., pdf.MetaData.Keywords), and then just assign the new value to it. Metadata fields such as Title and Keywords take string values, whereas the ModifiedData field takes datetime values. Next, we have set new security settings using the SecuritySettings class. 보시다시피, 여기에서 설정할 수 있는 다양한 옵션들이 있습니다. 이를 통해 작업하는 각 PDF 문서에 대한 권한 및 보안 수준을 완벽하게 제어할 수 있습니다. To access these settings, you just need to make sure you use pdf.SecuritySettings, followed by the setting you want to adjust. For example, the MakePdfDocumentReadOnly method sets the PDF document to be read-only, encrypting the content at 128-bit. Other options for SecuritySettings include: AllowUserAnnotations: Controls whether or not users can annotate the PDF. AllowUserPrinting: Controls printing permissions for the document. AllowUserFormData: Sets the permissions for whether users can fill-in forms. OwnerPassword: Sets the owner password for the PDF, which is used to disable or enable the other security settings. UserPassword: Sets the user password for the PDF, which must be entered in order to open or print the document. PDF 문서에 대한 사용자 지정 메타데이터, 암호 및 보안 설정을 완료했으면 pdf.SaveAs 메서드를 사용하여 PDF를 지정된 위치에 저장하십시오. IronPDF를 사용하여 PDF 메타데이터를 다루는 방법을 알아보세요. GitHub에서 보기 암호 https://github.com/iron-software/IronPdf.Examples/tree/main/examples/security-and-metadata ZIP 파일 다운로드 관련 튜토리얼 관련 사용법 가이드 클래스 문서화 언어 팩을 받으세요 IronPDF DLL 다운로드 이 페이지의 문제점을 신고하세요 시작할 준비 되셨나요? Nuget 다운로드 17,527,568 | 버전: 2026.2 방금 출시되었습니다 NuGet 무료 다운로드 총 다운로드 수: 17,527,568 라이선스 보기