Write React
Export as PDF
The DX for creating PDF files has never been easier.
$
npm install useprint-jsQuick start
Drop this in right after install.
import { usePrint } from "useprint-js";
const { print } = usePrint({ apiKey: process.env.USEPRINT_API_KEY! });
const pdf = await print(
<Document />,
{
pdfOptions: {
margin: { top: 0, left: 0, right: 0, bottom: 0 },
timeout: 10000,
},
},
);Preview
The exported PDF uses this same component tree.
Tailwind preset demo
Tailwind classes can shape this exact PDF.
Regular React structure plus curated Tailwind presets, exported through the same PDF renderer.
Settings
Update the presets, then generate a matching PDF.
Public demo input is capped at 100 characters.42/100
Change presets, then render a matching PDF.
What is usePrint?
usePrint lets you build document layouts in React, style them with Tailwind utilities, and render the result as production-ready PDFs.
This landing demo intentionally exposes only a small surface area, but the same rendering path supports richer components, spacing systems, typography, and regular CSS-driven design decisions.