@radzor/pdf-generate
PDF generation from HTML templates or raw content. Creates invoices, reports, and documents with configurable page size, margins, and headers/footers.
Storagev0.1.0typescriptpythonServerpdfdocumentinvoicereportgenerationhtmlby Radzor
Install
View source on GitHub →$npx radzor@latest add pdf-generate
⚠ Constraints: Generates simple PDFs using raw PDF commands. For complex layouts, consider a headless browser approach. Python implementation creates basic text/table PDFs without HTML rendering.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| pageSize | 'A4' | 'Letter' | 'Legal' | A4 | Page size. |
| margin | string | 20mm | Page margins (CSS format). |
| landscape | boolean | false | Landscape orientation. |
pageSize'A4' | 'Letter' | 'Legal'
Page size.
default: A4
marginstring
Page margins (CSS format).
default: 20mm
landscapeboolean
Landscape orientation.
default: false