Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/betterwrite/vue-pdfmake
- Owner: betterwrite
- License: mit
- Created: 2021-09-25T16:39:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-07T14:56:48.000Z (over 1 year ago)
- Last Synced: 2024-11-19T07:53:21.081Z (about 2 months ago)
- Topics: pdfmake, pdfmake-library, plugin, vue, vue3, vuejs
- Language: TypeScript
- Homepage:
- Size: 378 KB
- Stars: 26
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-vue-3 - vue3-pdfmake - A PDFMake Plugin for Vue 3.x (Packages)
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!**