Skip to content

DocumentPermissions

@scaryterry/pdfium


Defined in: src/core/types.ts:940

Structured document permissions decoded from the raw bitmask.

Provides named boolean fields for each permission flag, as well as the raw bitmask value for advanced use cases.

readonly canAddOrModifyAnnotations: boolean

Defined in: src/core/types.ts:950

Whether adding or modifying annotations is allowed.


readonly canAssemble: boolean

Defined in: src/core/types.ts:956

Whether assembling the document is allowed.


readonly canCopyOrExtract: boolean

Defined in: src/core/types.ts:948

Whether copying or extracting text/graphics is allowed.


readonly canExtractForAccessibility: boolean

Defined in: src/core/types.ts:954

Whether extracting for accessibility is allowed.


readonly canFillForms: boolean

Defined in: src/core/types.ts:952

Whether filling forms is allowed.


readonly canModifyContents: boolean

Defined in: src/core/types.ts:946

Whether modifying contents is allowed.


readonly canPrint: boolean

Defined in: src/core/types.ts:944

Whether printing is allowed.


readonly canPrintHighQuality: boolean

Defined in: src/core/types.ts:958

Whether high-quality printing is allowed.


readonly raw: number

Defined in: src/core/types.ts:942

The raw permissions bitmask.