vue3-pdfmake

A pdfmake plugin for Vue 3
14,067 27
Install
npm install vue3-pdfmake
Latest Version:2.3.0
Vue:2 · 3
License:MIT
Last Updated:May 18, 2025
Links: GitHub  ·  npm
Maintainer: novout

Vue PDFMake

A PDFMake plugin for 3.x

Install

yarn add vue3-pdfmake

OR

npm install vue3-pdfmake

in main.(js|ts)

import { createApp } from 'vue';
import { PDFPlugin } from 'vue3-pdfmake';
import App from './App.vue';

const app = createApp(App);
//...
app.use(PDFPlugin);
//...
app.mount('#app');

Example

<script setup>
import { usePDF } from 'vue3-pdfmake';

const pdfmake = usePDF({
  autoInstallVFS: true
})

const onGenPDF = () => {
  pdfmake.createPdf({
    content: [
      'Hello World From PDFMake!',
    ]
  }).download();
}
</script>

<template>
  <button @click="onGenPDF">Click here for download demo pdf</button>
</template>

Documentation

Check PDFMake Documentation for more explanations!

Related Packages

nuxt-pdfmake

Easily generate PDFs in Nuxt.js using pdfmake

39,074 52
vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686

Version History

Version Released License
2.3.0 MIT
2.2.0 MIT
2.1.2 MIT
2.1.1 MIT
2.1.0 MIT