Hey there, I'm currently experiencing issues with printing using a Vue component named vue-html2pdf
.
Here are the problems I'm facing:
- The pagination doesn't break the page when content is added, resulting in a 3-page printout.
- The first page appears blank when clicking on the download button.
Below are the settings I'm using for printing:
<vue-html2pdf
:show-layout="false"
:float-layout="true"
:enable-download="true"
:preview-modal="true"
:paginate-elements-by-height="1400"
filename="nightprogrammerpdf"
:pdf-quality="2"
:manual-pagination="false"
pdf-format="a4"
:pdf-margin="10"
pdf-orientation="portrait"
pdf-content-width="800px"
@progress="onProgress($event)"
ref="html2Pdf"
>
Here's a demonstration: https://codesandbox.io/s/vue-html-to-pdf-example-forked-3lijbr?file=/src/App.vue:95-532