Vue.js Render PDF Document in PDF.js Using PDFjs-dist Library Full Tutorial For Beginners

You are currently viewing Vue.js Render PDF Document in PDF.js Using PDFjs-dist Library Full Tutorial For Beginners
  • Post author:
  • Post category:Vue
  • Post comments:0 Comments

 

Welcome folks today in this tutorial we will be looking at how to render a pdf document in vue.js using pdfjs-dist library. All the source code is shown below. A step by step youtube video is also shown below.

 

 

 

Get Started

 

In order to get started we first of all need to install the pdfjs-dist npm package from the node package manager and inside your newly created vue.js project. Install this dependency

 

npm i pdfjs-dist

 

Now make the app.js and here we will include the custom component Pdfviewer which we will make later on.

 

 

 

Pdfviewer.js

 

 

 

 

 

Leave a Reply