Introduction

nuxt-pdf is a Nuxt 3 wrapper around jsPDF, a package that allows you to export PDF documents from your web apps.

  • Adds built in Nuxt 3 support to export components to a PDF Document
  • Works with native Nuxt 3 refs, allowing you to keep your clean Nuxt 3 code free from any external package

After installing the module you will be able to access the function like so:

// file: ~/app.vueimport { exportToPDF } from '#imports'await exportToPDF('my-pdf-file.pdf', HTMLElement)

See more in the Quick Start section.