A Nuxt 3 module to create Server Side rendered PDFs
npm install @sidebase/nuxt-pdf[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]

[![License][license-src]][license-href]


> nuxt-pdf is a easy to use, pdf exporting module to convert Nuxt 3 components into downloadable PDFs.
- Easily export your Nuxt 3 components into PDFs
- Generate PDFs on your server
- Guides for PDF specific styles
- Track exporting progress
1. Add @sidebase/nuxt-pdf dependency to your project
``bashUsing pnpm
pnpm add -D @sidebase/nuxt-pdf
2. Add
@sidebase/nuxt-pdf to the modules section of nuxt.config.ts`js
export default defineNuxtConfig({
modules: [
'@sidebase/nuxt-pdf'
]
})
`That's it! You can now use NuxtPDF in your Nuxt 3 app ✨
Afterwards you can use the Quick Start documentation to explore the features and properly configure your NuxtPDF instance!
Development
`bash
Install dependencies
pnpm installGenerate type stubs
pnpm run dev:prepareDevelop with the playground
pnpm run devBuild the playground
pnpm run dev:buildRun ESLint
pnpm run lintPublish a new release (bump version before)
pnpm publish --access public
``
[npm-version-src]: https://img.shields.io/npm/v/@sidebase/nuxt-pdf/latest.svg
[npm-version-href]: https://npmjs.com/package/@sidebase/nuxt-pdf
[npm-downloads-src]: https://img.shields.io/npm/dt/@sidebase/nuxt-pdf.svg
[npm-downloads-href]: https://npmjs.com/package/@sidebase/nuxt-pdf
[license-src]: https://img.shields.io/npm/l/@sidebase/nuxt-pdf.svg
[license-href]: https://npmjs.com/package/@sidebase/nuxt-pdf