问题描述
我想用 vue-html2pdf 下载 pdf。但是当我按下下载 pdf 按钮时,下载速度很慢。如何加快下载速度?
查看我的 html 代码
<template>
<div>
<vue-html2pdf
:show-layout="false"
:margin="5"
:enable-download="true"
:paginate-elements-by-height="1000"
filename="hee hee"
:pdf-quality="2"
:manual-pagination="false"
pdf-format="letter"
pdf-orientation="landscape"
pdf-content-width="800px"
pdf-unit="in"
ref="html2Pdf"
>
<section slot="pdf-content">
<!-- PDF Content Here -->
<div v-html="previewData.html"></div>
</section>
</vue-html2pdf>
</div>
</template>
我的脚本代码。
downloadPdf() {
this.$refs.html2Pdf.generatePdf()
},
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)