pdfrx_web
    Preparing search index...

    Function PdfrxViewerApp

    • The whole viewer in one component: toolbar, thumbnails/outline sidebar, search, print, and the page surface — the equivalent of the standalone demo.

      Reach for this when you want a PDF viewer rather than a PDF viewer toolkit. When the layout has to be yours, drop down to PdfrxProvider and arrange PdfToolbar, PdfSidebar and PdfViewerSurface (and the hooks) as you like — this component is a thin composition of exactly those pieces.

      Needs @pdfrx/react/styles.css imported, and a size: it fills its box.

      Parameters

      • __namedParameters: PdfrxViewerAppProps

        The destructured component props or operation options.

      Returns ReactNode

      The resulting ReactNode.

      import { PdfrxViewerApp } from '@pdfrx/react';
      import '@pdfrx/react/styles.css';

      <PdfrxViewerApp src="/manual.pdf" wasmModulesUrl="/pdfium/" style={{ height: '100vh' }} enableFileOpen />