Генерация PDF из JSON через React
★ 8.1 · content
Генерация PDF через React is a Claude Code skill that renders PDF documents from JSON specifications using @json-render/react-pdf on top of @react-pdf/renderer. Reach for it when you need to auto-generate invoices, reports, or templated documents from structured data, when you want to define a PDF layout in JSON without writing JSX by hand, or when the PDF must be streamed directly into an HTTP response. It ships a full set of standard components — Document, Page, View, Row, Column, Heading, Text, Image, Link, Table, List, Divider, Spacer, and PageNumber — and exposes three output modes: renderToBuffer for in-memory use, renderToStream to pipe into a Node.js HTTP response, and renderToFile to write directly to disk. External state is managed via createStateStore, custom components are registered with defineRegistry, and a server-safe entry point (@json-render/react-pdf/server) lets you import the schema and catalog without pulling in React. Install via npm: @json-render/core and @json-render/react-pdf. The direction is generating PDFs from data, not parsing or converting existing PDF files. Works well in Node.js back-end or server-rendering contexts; not the right fit if you need to read, edit, or convert existing PDF documents.
- #react-pdf
- #document-generation
- #json-render
- #reporting