-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProtectionOptions.cs
More file actions
33 lines (29 loc) · 968 Bytes
/
Copy pathProtectionOptions.cs
File metadata and controls
33 lines (29 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace SmartPdfKit.Models
{
/// <summary>
/// Options for encrypting and protecting a PDF.
/// </summary>
public class ProtectionOptions
{
/// <summary>
/// Gets or sets the password required to open the PDF.
/// </summary>
public string? UserPassword { get; set; }
/// <summary>
/// Gets or sets the password required to edit permissions or decrypt the file.
/// </summary>
public string? OwnerPassword { get; set; }
/// <summary>
/// Gets or sets a value indicating whether printing is permitted. Default is true.
/// </summary>
public bool PermitPrint { get; set; } = true;
/// <summary>
/// Gets or sets a value indicating whether modifying content is permitted. Default is true.
/// </summary>
public bool PermitModify { get; set; } = true;
/// <summary>
/// Gets or sets a value indicating whether copying content is permitted. Default is true.
/// </summary>
public bool PermitCopy { get; set; } = true;
}
}