Axonpack
@axonpdf/react

Overview

@axonpdf/react: React components, styles, fonts and render functions for PDF files.

@axonpdf/react is the package most apps use. It holds the components, StyleSheet, Font, the render functions for Node and the browser, and the Web Worker helpers. It drives @axonpdf/core for you, so you don't install the engine yourself.

npm install @axonpdf/react react

React 18 and 19 are supported.

ImportWhat it gives
@axonpdf/reactEverything. Node and the browser get different builds automatically.
@axonpdf/react/componentsThe components and the prop and style types only. Nothing in it loads the engine.
@axonpdf/react/workerexpose, renderInWorker, usePDFWorker and useWorker, for rendering in a Web Worker.

Start with Getting started, then Components. Every export is in the Reference.