Document
class Document extends Userdata<"any_document"> { }
authenticatePassword(password: string): number;
countPages(): number;
formatLinkURI(dest: LinkDest): string;
getMetaData(key: string): string | undefined;
hasPermission(perm: DocumentPermission): boolean;
isPDF(): boolean;
isReflowable(): void;
layout(
w: number,
h: number,
em: number,
): void;loadOutline(): OutlineItem[] | null;
needsPassword(): boolean;
outlineIterator(): OutlineIterator;
setMetaData(key: string, value: string): void;
static readonly LINK_DEST: LinkDestType[];
static readonly META_ENCRYPTION: string;
static readonly META_FORMAT: string;
static readonly META_INFO_AUTHOR: string;
static readonly META_INFO_CREATIONDATE: string;
static readonly META_INFO_CREATOR: string;
static readonly META_INFO_KEYWORDS: string;
static readonly META_INFO_MODIFICATIONDATE: string;
static readonly META_INFO_PRODUCER: string;
static readonly META_INFO_SUBJECT: string;
static readonly META_INFO_TITLE: string;
static readonly PERMISSION: Record<DocumentPermission, number>;