Table of Contents

Class PdfPermissionSet

Namespace
PdfEngine.Vector.Security
Assembly
PdfEngine.Vector.dll

What a reader who opens the document with the user password may do (ISO 32000-2 Table 22).

public sealed record PdfPermissionSet : IEquatable<PdfPermissionSet>
Inheritance
PdfPermissionSet
Implements
Inherited Members

Properties

All

public static PdfPermissionSet All { get; }

Property Value

PdfPermissionSet

AssemblePages

Bit 11: inserting, rotating and deleting pages, and bookmarks and thumbnails.

public bool AssemblePages { get; init; }

Property Value

bool

ChangeDocument

Bit 4: changing the document other than by the operations below.

public bool ChangeDocument { get; init; }

Property Value

bool

Comment

Bit 6: adding and changing comments; also allows filling in forms.

public bool Comment { get; init; }

Property Value

bool

CopyContent

Bit 5: copying or extracting text and graphics.

public bool CopyContent { get; init; }

Property Value

bool

CopyForAccessibility

Bit 10: extracting text and graphics for accessibility.

public bool CopyForAccessibility { get; init; }

Property Value

bool

FillForms

Bit 9: filling in form fields, including signature fields.

public bool FillForms { get; init; }

Property Value

bool

IsUnrestricted

public bool IsUnrestricted { get; }

Property Value

bool

None

public static PdfPermissionSet None { get; }

Property Value

PdfPermissionSet

Printing

public PdfPrintPermission Printing { get; init; }

Property Value

PdfPrintPermission

Methods

FromFlags(int)

The bits of /P as they are stored (revision 3 and later); bit 6 implying form filling is not folded in.

public static PdfPermissionSet FromFlags(int p)

Parameters

p int

Returns

PdfPermissionSet

ToFlags()

/P for revision 3 and later: bits 1–2 clear, 7–8 and 13–32 set, the rest as chosen.

public int ToFlags()

Returns

int