rossta / vue-pdfjs-demo

A demo PDF viewer implemented with Vue and PDF.js

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

License:MIT License


Languages

Language:Vue 88.3%Language:JavaScript 7.2%Language:HTML 1.7%Language:Ruby 1.5%Language:Shell 1.3%