Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rossta/vue-pdfjs-demo

A demo PDF viewer implemented with Vue and PDF.js
https://github.com/rossta/vue-pdfjs-demo

Last synced: about 2 months ago
JSON representation

A demo PDF viewer implemented with Vue and PDF.js

Awesome Lists containing this project

README

        

# 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](./screenshot-pdf-viewer.png)](https://rossta.net/vue-pdfjs-demo)

To learn more, checkout [the series of posts](https://rossta.net/blog/series/pdf-viewer.html) describing how this project was implemented.
1. [Basic page rendering](https://rossta.net/blog/building-a-pdf-viewer-with-vue-part-1.html)
1. [Fetching and rendering lazily](https://rossta.net/blog/building-a-pdf-viewer-with-vue-part-2.html)
1. [Extracting a data component](https://rossta.net/blog/extracting-a-data-component-in-vue.html)
1. [Refactoring to nested abstract components](https://rossta.net/blog/refactoring-to-nested-abstract-components-vuejs-pdf-viewer.html)

## Setup

To run the project locally:

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

## Documentation

* [Vue.js](https://vuejs.org)
* [PDF.js](https://mozilla.github.io/pdf.js/)