pdfrx_web
    Preparing search index...

    Function usePdfrxViewer

    • The underlying PdfrxViewer, or null until PdfViewerSurface has mounted (and again after it unmounts).

      This is the escape hatch: anything the typed hooks do not cover — custom layouts, page overlays, coordinate conversion, direct @pdfrx/engine access through viewer.document — is reachable from here.

      Remember that the viewer owns its document: any PdfDocument/PdfPage you hold becomes invalid as soon as another document is opened, so re-read them rather than caching across loads.

      Returns PdfrxViewer | null

      The current pdfrx viewer state and actions.

      const viewer = usePdfrxViewer();
      const onClick = () => viewer?.selectAll();