interface PDFObjectType {
    destroy: () => Promise<void>;
    getArray: () => Promise<null | PDFObjectType>;
    getConstString: (obj: PDFObjectType) => Promise<string>;
    getDict: () => Promise<null | PDFObjectType>;
    getDirect: () => Promise<null | PDFObjectType>;
    getDirectType: () => Promise<number>;
    getInteger: () => Promise<number>;
    getNumber: () => Promise<number>;
    getObjNum: () => Promise<number>;
    getString: () => Promise<string>;
    getType: () => Promise<number>;
    getUnicodeText: () => Promise<string>;
    isIdentical: (otherObj: PDFObjectType) => Promise<boolean>;
    isModified: () => Promise<boolean>;
    options: Options;
    setModified: (modified: boolean) => Promise<void>;
    setUnicodeText: (str: string) => Promise<void>;
}

Implemented by

Properties

destroy: () => Promise<void>

销毁 pdfObject。

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

      当对象被销毁时解析的 Promise。

getArray: () => Promise<null | PDFObjectType>

获取对象的数组。

Type declaration

getConstString: (obj: PDFObjectType) => Promise<string>

获取对象的常量字符串。

Type declaration

    • (obj: PDFObjectType): Promise<string>
    • Parameters

      Returns Promise<string>

      一个 Promise,其解析值为该对象的常量字符串。

getDict: () => Promise<null | PDFObjectType>

获取对象的字典。

Type declaration

getDirect: () => Promise<null | PDFObjectType>

检索对象的直接引用。

Type declaration

getDirectType: () => Promise<number>

获取对象的直接类型。

Type declaration

    • (): Promise<number>
    • Returns Promise<number>

      一个 Promise,解析为表示对象直接类型的数字。

getInteger: () => Promise<number>

获取对象的整数值。

Type declaration

    • (): Promise<number>
    • Returns Promise<number>

      一个 Promise,解析为对象的整数值。

getNumber: () => Promise<number>

获取对象的数值。

Type declaration

    • (): Promise<number>
    • Returns Promise<number>

      一个 Promise,会解析为该对象的数值。

getObjNum: () => Promise<number>

获取对象编号。

Type declaration

    • (): Promise<number>
    • Returns Promise<number>

      一个 Promise,解析为表示对象编号的数字。

getString: () => Promise<string>

获取对象的字符串表示形式。

Type declaration

    • (): Promise<string>
    • Returns Promise<string>

      一个 Promise,解析为表示该对象的字符串。

getType: () => Promise<number>

获取对象的类型。

Type declaration

getUnicodeText: () => Promise<string>

获取对象的 Unicode 文本。

Type declaration

    • (): Promise<string>
    • Returns Promise<string>

      一个解析为对象 Unicode 文本的 Promise。

isIdentical: (otherObj: PDFObjectType) => Promise<boolean>

确定当前对象是否与另一个对象完全相同。

Type declaration

    • (otherObj: PDFObjectType): Promise<boolean>
    • Parameters

      • otherObj: PDFObjectType

        用于进行比较的另一个 PDFObject 实例。

      Returns Promise<boolean>

      一个 Promise,其解析为一个布尔值,表示两个对象是否完全相同。

isModified: () => Promise<boolean>

确定对象是否已被修改。

Type declaration

    • (): Promise<boolean>
    • Returns Promise<boolean>

      一个 Promise,解析为一个布尔值,用于指示对象是否已被修改。

options: Options
setModified: (modified: boolean) => Promise<void>

设置对象是否已被修改。

Type declaration

    • (modified: boolean): Promise<void>
    • Parameters

      • modified: boolean

        对象是否已被修改。默认为 false。

      Returns Promise<void>

      在修改状态设置完成时解析的 Promise。

setUnicodeText: (str: string) => Promise<void>

将 Unicode 文本设置到对象。

Type declaration

    • (str: string): Promise<void>
    • Parameters

      • str: string

        要设置的字符串。

      Returns Promise<void>

      在文本设置完成时被解析的 Promise。