Description
@maistik/nuxt-pdf is a server-side PDF generation module for Nuxt 3 & 4. It renders PDFs from Handlebars templates (.hbs) entirely in Nitro/Node — no PDF code is shipped to the browser.
Key features:
- Provider-agnostic rendering — switch between Gotenberg, Browserless, or Puppeteer via config.
- Built-in i18n — a
{{t}} helper with nested message keys and locale-aware Intl formatting (currency, dates, numbers).
- Rich helper library — currency, date, number, math, string, and comparison helpers, plus user-defined custom helpers that work in production.
- Composable API —
usePdf() exposes generate() (returns a Blob) and download().
- Print-aware — supports
@page, page breaks, and @media print styling.
Templates are auto-discovered from your project, and a POST /api/pdf server route is registered automatically.
Repository
https://github.com/Maistik-Studio/nuxt-pdf
npm
https://www.npmjs.com/package/@maistik/nuxt-pdf
Nuxt Compatibility
Nuxt 4
Description
@maistik/nuxt-pdfis a server-side PDF generation module for Nuxt 3 & 4. It renders PDFs from Handlebars templates (.hbs) entirely in Nitro/Node — no PDF code is shipped to the browser.Key features:
{{t}}helper with nested message keys and locale-awareIntlformatting (currency, dates, numbers).usePdf()exposesgenerate()(returns aBlob) anddownload().@page, page breaks, and@media printstyling.Templates are auto-discovered from your project, and a
POST /api/pdfserver route is registered automatically.Repository
https://github.com/Maistik-Studio/nuxt-pdf
npm
https://www.npmjs.com/package/@maistik/nuxt-pdf
Nuxt Compatibility
Nuxt 4