PDFObject
class PDFObject extends Userdata<"pdf_obj"> { }
_doc: PDFDocument;
asBoolean(): boolean;
asByteString(): Uint8Array;
asIndirect(): number;
asName(): string;
asNumber(): number;
asString(): string;
getBoolean(...path: PDFObjectPath): boolean;
getIndirect(...path: PDFObjectPath): number;
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;
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;