To run the demo of project in local web:
$ git clone https://github.com/Alimazing/vue-pdf-reader.git
$ cd vue-pdf-reader
$ npm install
$ npm run serve // Compiles and hot-reloads for development
//
$ npm run build // Compiles and minifies for production
Method | Description | Parameters |
---|---|---|
setCurrentPage | change current page | - |
onPrevPage | turn to the previous page | - |
onNextPage | turn to the next page | - |
zoomIn | zoom in page of PDF | - |
zoomOut | zoom out page of PDF | - |
- PDF.js
- Online Deme of PDF.js ---- Rendering PDF as canvas in web
- [十分鐘學習] PDF.js - HTML5 X PDF 聯名 ---- A tutorial of PDF.js with A example.
- vue-pdfjs-demo ---- A excellent project offered as Vue component for rendering PDF