kempsteven / vue-html2pdf

vue-html2pdf converts any vue component or element into PDF, vue-html2pdf is basically a vue wrapper only and uses html2pdf.js behind the scenes.
https://www.npmjs.com/package/vue-html2pdf
MIT License
440 stars 74 forks source link

vue3-html2pdf generates blank pdf #131

Open joyal7701 opened 2 years ago

joyal7701 commented 2 years ago

this generates blank pdf for me: ` <vue3-html2pdf :show-layout="false" :float-layout="true" :enable-download="true" :preview-modal="true" :paginate-elements-by-height="1400" filename="invoice" :pdf-quality="2" :manual-pagination="false" pdf-format="a4" :pdf-margin="10" pdf-orientation="portrait" pdf-content-width="800px" @progress="onProgress($event)" ref="html2Pdf"

hii

`

Function:

<img :style="{ cursor: 'pointer' }" src="../assets/images/download-arrow.png" alt="«" @click="generatePDF()" />

generatePDF() { this.$refs.html2Pdf.generatePdf(); },