Vue PDF Viewer based on PDF Object
npm install vue-instant-pdf-viewer> Vue PDF Viewer based on PDF Object
`` bash`
npm install --save vue-instant-pdf-viewer
Please include pdf.object.js from https://pdfobject.com
` html`
javascript
import Vue from 'vue'
import VuePDFViewer from 'vue-pdf-viewer'new Vue({
el: '#app',
data: {
url: 'https://bitcoin.org/bitcoin.pdf',
},
components: {
'vue-pdf-viewer': VuePDFViewer
}
});
`$3
` html
vue-pdf-viewer
`$3
!vue-pdf-viewerBuild Setup
` bash
install dependencies
npm installserve with hot reload at localhost:8080
npm run devbuild for production with minification
npm run build
``For detailed explanation on how things work, checkout the guide and docs for vue-loader.