Vue PDF.js Demo
This project demonstrates how a simple PDF viewer could be implemented using Vue and PDF.js. This is not a fully-featured PDF document viewer with sophisticated controls, but could serve as the basis for one.
To learn more, checkout the series of posts describing how this project was implemented.
- Basic page rendering
- Fetching and rendering lazily
- Extracting a data component
- Refactoring to nested abstract components
To run the project locally:
$ git clone https://github.com/rossta/vue-pdfjs-demo $ cd vue-pdfjs-demo $ yarn install $ yarn serve