Allen7D / vue-pdf-reader

This code is offered as a component to render PDF with text layer in web by using Vue.js and PDF.js.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-pdf-reader

This code is offered as a component to render PDF with text layer in web by using Vue.js and PDF.js.

Setup

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

Document

Methods

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 -

Reference

About

This code is offered as a component to render PDF with text layer in web by using Vue.js and PDF.js.

License:Apache License 2.0


Languages

Language:Vue 58.6%Language:JavaScript 25.0%Language:CSS 14.2%Language:HTML 2.2%