chrisdavies / pdfviewer

A basic PDF viewer built with PDF.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDF Viewer

A basic PDF viewer built on PDFjs.

Usage

This can be embedded as an iframe. Place the URL of the PDF in the query params like so:

iframe.src = `https://morebetterlabs.github.io/pdfviewer?pdf=${encodeURIComponent(pdfURL)}`;

Features

  • Lazy loading of pages so large PDFs don't hose everything
  • Basic navigation
  • The usual Zoom / Scale features
  • Full screen mode

License

Licensed under Apache.

About

A basic PDF viewer built with PDF.js


Languages

Language:JavaScript 54.7%Language:HTML 45.3%