pdfme generates PDFs from JSON templates in Node or the browser, with a WYSIWYG designer, viewer, forms, and CLI validation for template-driven documents.
Overview
pdfme is an MIT-licensed TypeScript library for generating PDFs from JSON templates that pair a base PDF with a schema. The same templates power generation, interactive forms, and viewing components.
A designer UI embeds in applications so non-developers can lay out fields visually. The generator accepts template plus input data and completes most jobs in tens to hundreds of milliseconds according to project benchmarks.
Works in Node.js and browsers using pdf-lib foundations plus PDF.js for viewing. The @pdfme/cli package validates templates, runs diagnostics, and renders page images for layout checks.
Sponsors and contributors extend fonts, schemas, and adapters; feature requests may be implemented upstream while remaining open source.
Key features
- JSON template model
- Embeddable WYSIWYG designer
- Browser and Node generators
- Form fill from templates
- PDF viewer integration
- CLI validate and doctor commands
- Image grid preview generation
- MIT open source license
Use cases
- Invoice and certificate generation
- Embeddable PDF designers
- Browser-based PDF fills
- Batch renders from JSON jobs