vue-pdf官方中文文档
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vue-pdf官方中文文档相关的知识,希望对你有一定的参考价值。
参考技术Avue.js pdf viewer
vue-pdf demo on jsfiddle
TBD: fix the demo
Same browser support as Vue.js 2
since v2.x, the script is exported as esm.
The url of the pdf file. src may also be a string|TypedArray|DocumentInitParameters|PDFDataRangeTransport for more details, see PDFJS.getDocument() .
The page number to display.
The page rotation in degrees, only multiple of 90 are valid.
Document loading progress. Range [0, 1].
Triggered when the document is loaded.
Triggered when a page is loaded.
The total number of pages of the pdf.
Triggered when an error occurred.
Triggered when an internal link is clicked
beware: when the component is destroyed, the object returned by createLoadingTask() become invalid.
Supported options:
<img src="https://www.franck-freiburger.com/FF.png" > Franck Freiburger
vue-pdf使用
参考技术A 1.npm install --save vue-pdf2.使用参考: GitHub - FranckFreiburger/vue-pdf: vue.js pdf viewer
3.打印pdf时中文乱码问题:
需要修改vue-pdf安装包的pdfjsWrapper.js文件
具体修改方法参照: Fix fonts issue in printing by arioth · Pull Request #130 · FranckFreiburger/vue-pdf · GitHub
4.预览时会出现中文不显示: vue-pdf解决显示无法显示中文、中文打印预览乱码_david的博客-CSDN博客_vue-pdf中文不显示
5.接收显示文件流: vue-pdf接收文件流_wusq的博客-CSDN博客_vue-pdf 文件流
以上是关于vue-pdf官方中文文档的主要内容,如果未能解决你的问题,请参考以下文章
Android Architecture(中文官方文档)——MVVM、DataBinding、Lifecycle、Room、LiveData