pdfrx_web
    Preparing search index...

    Function findTextAndIndexForPoint

    • Find the character nearest to a document position. Exact hits win; otherwise the closest character within hitTestMargin (document units) is used.

      Parameters

      • point: Offset

        The point to process.

      • pages: readonly SelectablePage[]

        The pages to process, in document order.

      • hitTestMargin: number = 8

        The hitTestMargin value (number).

      Returns SelectionPoint | null

      The resolved SelectionPoint or null.