pdfrx_web
    Preparing search index...

    Type Alias PdfRawObject

    PdfRawObject:
        | { kind: "null" }
        | { kind: "boolean"; value: boolean }
        | { kind: "integer"; value: number }
        | { kind: "number"; value: number }
        | { kind: "string"; value: Uint8Array }
        | { kind: "name"; value: string }
        | { generationNumber: number; kind: "reference"; objectNumber: number }
        | { items: PdfRawObject[]; kind: "array" }
        | { entries: Record<string, PdfRawObject>; kind: "dictionary" }
        | {
            data: Uint8Array;
            entries: Record<string, PdfRawObject>;
            kind: "stream";
            rawData?: Uint8Array;
        }

    A non-recursive, structured-clone representation of one PDF object.

    The represented PDF object kinds are defined by ISO 32000-2:2020, 7.3 ("Objects"); streams by 7.3.8; and indirect references by 7.3.10.

    Indirect references stay { kind: 'reference', ... } instead of expanding their target, so cyclic object graphs are safe to inspect. PDF strings are their original bytes (not decoded JavaScript text), names are decoded strings, dictionary keys omit the leading /, and stream data contains decoded bytes. rawData is present only when explicitly requested.