Class PdfSecurityOptions
- Namespace
- LibreOfficeKit
- Assembly
- LibreOfficeKit.dll
Security and permission settings for PDF export. Controls document open passwords, permission passwords, and fine-grained access restrictions such as printing, editing, and content copying.
public class PdfSecurityOptions
- Inheritance
-
PdfSecurityOptions
- Inherited Members
Properties
Changes
Gets or sets what types of changes are allowed to the document.
Only effective when RestrictPermissions is true.
public PdfChangePermission? Changes { get; set; }
Property Value
DocumentOpenPassword
Gets or sets the password required to open the PDF document.
Only effective when EncryptFile is true.
public string? DocumentOpenPassword { get; set; }
Property Value
EnableCopyingOfContent
Gets or sets whether content can be copied from the PDF document.
Only effective when RestrictPermissions is true.
public bool? EnableCopyingOfContent { get; set; }
Property Value
- bool?
EnableTextAccessForAccessibilityTools
Gets or sets whether text can be extracted for accessibility tools.
Only effective when RestrictPermissions is true.
public bool? EnableTextAccessForAccessibilityTools { get; set; }
Property Value
- bool?
EncryptFile
Gets or sets whether to encrypt the PDF file.
When true, the PDF can only be opened with the DocumentOpenPassword.
public bool EncryptFile { get; set; }
Property Value
PermissionPassword
Gets or sets the password required to change document permissions.
Only effective when RestrictPermissions is true.
public string? PermissionPassword { get; set; }
Property Value
Printing
Gets or sets the printing permission level for the PDF document.
Only effective when RestrictPermissions is true.
public PdfPrintPermission? Printing { get; set; }
Property Value
RestrictPermissions
Gets or sets whether PDF permissions should be restricted.
public bool RestrictPermissions { get; set; }