Skip to main content

PdfPermissions Struct

Definition

Assembly:Avalonia.Controls.PdfViewer
Package:Avalonia.Controls.PdfViewer

Decodes the PDF document permission bits into named capabilities. For an unprotected document all capabilities are allowed.

public struct PdfPermissions

Inheritance: ValueType -> PdfPermissions

Constructors

NameDescription
PdfPermissionsInitializes a new instance from the raw permission bitfield.

PdfPermissions Constructor

Initializes a new instance from the raw permission bitfield.

public PdfPermissions(uint rawValue)

Parameters

rawValue uint

Properties

NameDescription
CanAnnotateWhether annotations may be added or modified.
CanAssembleWhether pages may be inserted, deleted, or reordered.
CanCopyContentWhether text and graphics may be copied/extracted.
CanExtractForAccessibilityWhether content may be extracted for accessibility.
CanFillFormsWhether interactive form fields may be filled.
CanModifyWhether the document content may be modified.
CanPrintWhether the document may be printed.
CanPrintHighQualityWhether the document may be printed at high quality.
RawValueGets the raw permission bitfield (0xFFFFFFFF when unrestricted).

CanAnnotate Property

Whether annotations may be added or modified.

public bool CanAnnotate { get; set; }

CanAssemble Property

Whether pages may be inserted, deleted, or reordered.

public bool CanAssemble { get; set; }

CanCopyContent Property

Whether text and graphics may be copied/extracted.

public bool CanCopyContent { get; set; }

CanExtractForAccessibility Property

Whether content may be extracted for accessibility.

public bool CanExtractForAccessibility { get; set; }

CanFillForms Property

Whether interactive form fields may be filled.

public bool CanFillForms { get; set; }

CanModify Property

Whether the document content may be modified.

public bool CanModify { get; set; }

CanPrint Property

Whether the document may be printed.

public bool CanPrint { get; set; }

CanPrintHighQuality Property

Whether the document may be printed at high quality.

public bool CanPrintHighQuality { get; set; }

RawValue Property

Gets the raw permission bitfield (0xFFFFFFFF when unrestricted).

public uint RawValue { get; set; }