Skip to content

martinhipp/vue-pdfjs-demo

 
 

Repository files navigation

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.

https://rossta.net/vue-pdfjs-demo

To learn more, checkout the series of posts describing how this project was implemented.

  1. Basic page rendering
  2. Fetching and rendering lazily
  3. Extracting a data component
  4. Refactoring to nested abstract components

Setup

To run the project locally:

$ git clone https://github.com/rossta/vue-pdfjs-demo
$ cd vue-pdfjs-demo
$ yarn install
$ yarn serve

Documentation

About

A demo PDF viewer implemented with Vue and PDF.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 88.3%
  • JavaScript 7.2%
  • HTML 1.7%
  • Ruby 1.5%
  • Shell 1.3%