Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/betterwrite/vue-pdfmake

A PDFMake Plugin for Vue 3.x
https://github.com/betterwrite/vue-pdfmake

pdfmake pdfmake-library plugin vue vue3 vuejs

Last synced: about 2 months ago
JSON representation

A PDFMake Plugin for Vue 3.x

Awesome Lists containing this project

README

        

# Vue PDFMake

A [PDFMake](http://pdfmake.org/#/) plugin for 3.x

## Install

`yarn add vue3-pdfmake`

OR

`npm install vue3-pdfmake`

in `main.(js|ts)`

```js
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

```vue

import { usePDF } from 'vue3-pdfmake';

const pdfmake = usePDF({
autoInstallVFS: true
})

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

Click here for download demo pdf

```

### Documentation

**Check [PDFMake Documentation](https://pdfmake.github.io/docs/0.3/getting-started/client-side/methods/) for more explanations!**