ComPDFKit Web SDK
    Preparing search index...

    Interface SearchResult

    One text search result.

    interface SearchResult {
        ambientStr: string;
        pageNum: number;
        pageNumber: number;
        quads: Core.Annotations.Quad[];
        resultCode: SearchResultCode;
        resultStr: string;
        resultStrEnd: number;
        resultStrStart: number;
    }
    Index
    ambientStr: string

    Surrounding text (as the engine FindNext context: at most 10 characters before the match and 30 more than the match, possibly spanning lines, newlines written as spaces), for the result list

    pageNum: number

    Same as pageNumber (an alias of the same name on result objects)

    pageNumber: number

    Page number (1-based).

    Quads of the matched text, one per line (page coordinates)

    resultCode: SearchResultCode

    FOUND (a match); PAGE / DONE results in search callbacks have no text or quads

    resultStr: string

    The matched text; empty for PAGE and DONE results.

    resultStrEnd: number

    End (exclusive) of resultStr within ambientStr.

    resultStrStart: number

    [start, end) of resultStr in ambientStr