ComPDFKit Web SDK
    Preparing search index...

    Interface PageText

    Text and character geometry of one page, in page coordinates.

    interface PageText {
        bytes: number;
        charCount: number;
        direction: "ltr" | "rtl" | "mixed";
        lines: LineIndex;
        pageNumber: number;
        quads: Float32Array;
        text: string;
    }
    Index
    bytes: number

    Approximate memory used by this entry, counted against the text cache limit.

    charCount: number

    Number of characters, not counting the \n between lines.

    direction: "ltr" | "rtl" | "mixed"

    Writing direction of the page text.

    lines: LineIndex

    Character ranges and bounding boxes of the lines.

    pageNumber: number

    Page number (1-based).

    quads: Float32Array

    8 numbers per character: x1,y1,x2,y2,x3,y3,x4,y4 (bottom-left, bottom-right, top-right, top-left, page coordinates); top and bottom take the line's edges

    text: string

    Plain text in logical order, one \n between lines