MCPcopy Create free account
hub / github.com/LibPDF-js/core / isEncryptionVersion

Function isEncryptionVersion

src/security/schemas.ts:23–25  ·  view source on GitHub ↗
(version: unknown)

Source from the content-addressed store, hash-verified

21export type EncryptionVersion = 1 | 2 | 3 | 4 | 5;
22
23export const isEncryptionVersion = (version: unknown): version is EncryptionVersion => {
24 return typeof version === "number" && version >= 1 && version <= 5;
25};
26
27/**
28 * Valid encryption revisions (R entry).

Callers 1

parseVersionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected