pdfrx_web
    Preparing search index...

    Function usePdfPrint

    • Printing, with the "still rendering" state a button needs to disable itself.

      Every page is rasterized before the dialog opens, so a long document takes a noticeable moment; there is no progress reporting and no cancellation. Printing is disabled on iOS/iPadOS; inspect PdfPrint.isSupported before presenting a custom print control.

      Returns PdfPrint

      The current pdf print state and actions.

      const { print, isPrinting } = usePdfPrint();
      return <button onClick={() => void print()} disabled={isPrinting}>Print</button>;