vue-pdf-viewer
Vue PDF Viewer based on PDF Object
Installation
npm install --save vue-instant-pdf-viewer
Dependencies
Please include pdf.object.js from https://pdfobject.com
<!-- please select either unminimied or minified version -->
Usage
Javascript
el: '#app'data:url: 'https://bitcoin.org/bitcoin.pdf'components:'vue-pdf-viewer': VuePDFViewer;
HTML
vue-pdf-viewer
Preview
Build Setup
# install dependenciesnpm install# serve with hot reload at localhost:8080npm run dev# build for production with minificationnpm run build
For detailed explanation on how things work, checkout the guide and docs for vue-loader.