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

PDFObject

class PDFObject extends Userdata<"pdf_obj"> {
constructor(doc: PDFDocument, pointer: Pointer<"pdf_obj">);
get length(): Pointer<"pdf_obj">;
 
_get(path: PDFObjectPath): Pointer<"pdf_obj">;
asBoolean(): boolean;
asByteString(): Uint8Array;
asIndirect(): number;
asJS(seen?: Record<number, PDFObject>): any;
asName(): string;
asNumber(): number;
asString(): string;
delete(key: number | string | PDFObject): void;
forEach(fn: (
val: PDFObject,
key: number | string,
self: PDFObject,
) => void
): void;
get(...path: PDFObjectPath): PDFObject;
getBoolean(...path: PDFObjectPath): boolean;
getIndirect(...path: PDFObjectPath): number;
getInheritable(key: string | PDFObject): PDFObject;
getName(...path: PDFObjectPath): string;
getNumber(...path: PDFObjectPath): number;
getString(...path: PDFObjectPath): string;
isArray(): boolean;
isBoolean(): boolean;
isDictionary(): boolean;
isIndirect(): boolean;
isInteger(): boolean;
isName(): boolean;
isNull(): boolean;
isNumber(): boolean;
isStream(): boolean;
isString(): boolean;
push(value: any): any;
put(key: number | string | PDFObject, value: any): any;
readRawStream(): Buffer;
readStream(): Buffer;
resolve(): PDFObject;
toString(tight?: boolean, ascii?: boolean): string;
valueOf(): string | number | boolean | this | null;
writeObject(obj: any): void;
writeRawStream(buf: AnyBuffer): void;
writeStream(buf: AnyBuffer): void;
 
static readonly _drop: (p: Pointer<"pdf_obj">) => void;
static readonly Null: PDFObject;
}

§Extends

§
Userdata<"pdf_obj">
[src]

§Constructors

§
new PDFObject(doc: PDFDocument, pointer: Pointer<"pdf_obj">)
[src]

§Properties

§
length: Pointer<"pdf_obj"> readonly
[src]

§Methods

§
_get(path: PDFObjectPath): Pointer<"pdf_obj">
[src]
§
asBoolean(): boolean
[src]
§
asByteString(): Uint8Array
[src]
§
asIndirect(): number
[src]
§
asJS(seen?: Record<number, PDFObject>): any
[src]
§
asName(): string
[src]
§
asNumber(): number
[src]
§
asString(): string
[src]
§
delete(key: number | string | PDFObject): void
[src]
§
forEach(fn: (val: PDFObject, key: number | string, self: PDFObject) => void): void
[src]
§
get(...path: PDFObjectPath): PDFObject
[src]
§
getBoolean(...path: PDFObjectPath): boolean
[src]
§
getIndirect(...path: PDFObjectPath): number
[src]
§
getInheritable(key: string | PDFObject): PDFObject
[src]
§
getName(...path: PDFObjectPath): string
[src]
§
getNumber(...path: PDFObjectPath): number
[src]
§
getString(...path: PDFObjectPath): string
[src]
§
isArray(): boolean
[src]
§
isBoolean(): boolean
[src]
§
isDictionary(): boolean
[src]
§
isIndirect(): boolean
[src]
§
isInteger(): boolean
[src]
§
isName(): boolean
[src]
§
isNull(): boolean
[src]
§
isNumber(): boolean
[src]
§
isStream(): boolean
[src]
§
isString(): boolean
[src]
§
push(value: any): any
[src]
§
put(key: number | string | PDFObject, value: any): any
[src]
§
readRawStream(): Buffer
[src]
§
readStream(): Buffer
[src]
§
resolve(): PDFObject
[src]
§
toString(tight?: boolean, ascii?: boolean): string
[src]
§
valueOf():
| string
| number
| boolean
| this
| null
[src]
§
writeObject(obj: any): void
[src]
§
writeRawStream(buf: AnyBuffer): void
[src]
§
writeStream(buf: AnyBuffer): void
[src]

§Static Properties

§
_drop: (p: Pointer<"pdf_obj">) => void
[src]