Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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;
loadPage(index: number): PDFPage | Page;
needsPassword(): boolean;
outlineIterator(): OutlineIterator;
resolveLink(link: string | Link): number;
resolveLinkDestination(link: string | Link): LinkDest;
setMetaData(key: string, value: string): void;
 
static readonly _drop: (p: Pointer<"any_document">) => 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>;
 
static openDocument(from:
| ArrayBuffer
| Uint8Array
, magic: string): Document;
}

§Extends

§
Userdata<"any_document">
[src]

§Methods

§
authenticatePassword(password: string): number
[src]
§
countPages(): number
[src]
§
formatLinkURI(dest: LinkDest): string
[src]
§
getMetaData(key: string): string | undefined
[src]
§
hasPermission(perm: DocumentPermission): boolean
[src]
§
isPDF(): boolean
[src]
§
isReflowable(): void
[src]
§
layout(w: number, h: number, em: number): void
[src]
§
loadOutline(): OutlineItem[] | null
[src]
§
loadPage(index: number): PDFPage | Page
[src]
§
needsPassword(): boolean
[src]
§
outlineIterator(): OutlineIterator
[src]
§
resolveLinkDestination(link: string | Link): LinkDest
[src]
§
setMetaData(key: string, value: string): void
[src]

§Static Properties

§
_drop: (p: Pointer<"any_document">) => void
[src]
§
META_ENCRYPTION: string
[src]
§
META_FORMAT: string
[src]
§
META_INFO_AUTHOR: string
[src]
§
META_INFO_CREATIONDATE: string
[src]
§
META_INFO_CREATOR: string
[src]
§
META_INFO_KEYWORDS: string
[src]
§
META_INFO_MODIFICATIONDATE: string
[src]
§
META_INFO_PRODUCER: string
[src]
§
META_INFO_SUBJECT: string
[src]
§
META_INFO_TITLE: string
[src]
§
PERMISSION: Record<DocumentPermission, number>
[src]

§Static Methods

§
openDocument(from: Buffer | ArrayBuffer | Uint8Array | Stream, magic: string): Document
[src]