TypeScript MIT

pdfx

A React PDF component library with pre-built, themeable components and a CLI for seamless PDF document creation.

A

akii09

Dernière activité 22 sept. 2026
akii09/pdfx

1,2 k

étoiles

46

forks

17

issues ouvertes

pdfpdf-generationpdfxreactreact-pdfreact-pdf-renderer

Ce README est souvent en anglais.

PDFx

Beta npm

Pre-built PDF components for React. Copy them into your project, own them completely. Built on @react-pdf/renderer. No runtime dependency on PDFx.

PDFx Demo

Get started

npx pdfx-cli init
npx pdfx-cli add heading text badge

Already using shadcn? Same components, namespaced so they never collide with heading / table from shadcn/ui. Requires an existing components.json (npx shadcn@latest init first). Leave {name} as a placeholder:

npx shadcn@latest registry add @pdfx=https://getpdfx.dev/r/shadcn/{name}.json
npx shadcn@latest add @pdfx/heading @pdfx/text @pdfx/badge
import { Document, Page } from '@react-pdf/renderer';
import { Heading, Text, Badge } from './components/pdfx';

export default () => (
  <Document>
    <Page>
      <Heading level={1}>Invoice #1042</Heading>
      <Badge label="Paid" variant="success" />
      <Text>Thank you for your business.</Text>
    </Page>
  </Document>
);

Documentation

Visit getpdfx.dev for the full docs, component previews, and block templates.

Releases

Contributing

Please read the contributing guide before opening a PR.

License

MIT © Akii

Sponsors

PDFx is proudly sponsored by:

PDFx Builder

Interested in sponsoring? Open an issue to get in touch.

Projets similaires

📄 Create PDF files using React

TypeScriptflexboxpdfreact
Ddiegomura
16,8 k étoiles1,3 k

Open-source PDF generation library built with TypeScript and React. Features a WYSIWYG template designer, PDF viewer, and powerful generation capabilities. Create custom PDFs effortlessly in both browser and Node.js environments.

TypeScriptpdfpdf-designerpdf-generation
Ppdfme
4,9 k étoiles518

Display PDFs in your React app as easily as if they were images.

TypeScriptpdfpdf-viewerreact
Wwojtekmaj
11,2 k étoiles1 k