{"repo":"pdfnjs/pdfn","free":true,"listed":false,"github":"https://github.com/pdfnjs/pdfn","clone":"git clone https://github.com/pdfnjs/pdfn.git","description":"React components and dev server for generating print-ready, pagination-safe PDFs","language":"TypeScript","stars":19,"topics":["nextjs","pdf","react","typescript","vite","chromium","nodejs","puppeteer","tailwindcss"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"pdfn Generate PDFs from React components. Live Demo · Templates Installation Quick Start Set your API key as an environment variable: Get your API key at console.pdfn.dev. Features - React components — Write templates with JSX - Smart pagination — Content never splits mid-paragraph - Page numbers — and - Repeating headers/footers — Like Word or Google Docs - Tailwind CSS — Works via @pdfn/tailwind - TypeScript — Full type definitions included - Flexible — Cloud API or local development server Local Development Preview templates with hot reload: No API key needed — when PDFN API KEY is not set, it uses localhost: Examples Create a Template Next.js API Route With Tailwind CSS Self-Hosting Need to run on your own infrastructure? See Self-Hosting Guide. Components Component Description ----------- ------------- Root wrapper (title, fonts) Page container (size, margins, header/footer) Current page number Total page count Force page break Keep content together CLI Packages Package Purpose --------- --------- @pdfn/react Core SDK @pdfn/tailwind Tailwind CSS support @pdfn/next Next.js Edge support @pdfn/vite Vite Edge support Documentation - Getting Started — First PDF in 2 minutes - Components — Full component reference - Styling — Tailwind, CSS, inline styles - Next.js — Next.js integration guide - Error Handling — Error codes and handling - Self-Hosting — Puppeteer/Playwright setup Requirements Node.js 22+ License MIT --- GitHub · Issues · Discussions","default_branch":null,"files":null,"tree":[],"storefront":"/r/pdfnjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pdfnjs/pdfn/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}