Priestch / document-viewer

An out-of-the-box PDF viewer based on PDF.js

Home Page:https://priestch.github.io/document-viewer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDF Viewer

An out-of-the-box PDF viewer based on PDF.js.

Getting Started

npm create @document-kits/viewer@latest my-app

cd my-app

npm install
npm run dev

Why

Using pdfjs in a web application

To use PDF.js in a web application you can choose to use a pre-built version of the library or to build it from source. We supply pre-built versions for usage with NPM and Bower under the pdfjs-dist name. For more information and examples please refer to the wiki page on this subject.

The pre-built version can be easily integrated with iframe. But iframe can not be extended easily like normal library or component, and it suffers some other issues.

I learn a lot from the pdf.js project. This project is somehow giving back to the community. I will try to make it easier to integrate PDF viewer to your project.

Docs

See https://priestch.github.io/document-viewer/

Planed Todos

  • Display single PDF document
  • Cli starter
  • Docs
  • Display multiple documents

About

An out-of-the-box PDF viewer based on PDF.js

https://priestch.github.io/document-viewer/


Languages

Language:JavaScript 79.2%Language:CSS 20.1%Language:HTML 0.3%Language:Vue 0.2%Language:Handlebars 0.1%Language:Shell 0.1%