simple-pdf-viewer

<h1 align="center">Simple PDF Viewer</h1>

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
simple-pdf-viewer
73162.0.34 years ago5 years agoMinified + gzip package size for simple-pdf-viewer in KB

Readme

Simple PDF Viewer

<img src="https://img.shields.io/npm/dm/simple-pdf-viewer.svg?style=flat" alt="downloads">
<img src="https://badge.fury.io/js/simple-pdf-viewer.svg" alt="npm version">
<img src="https://david-dm.org/viktorhajer/simple-pdf-viewer/status.svg"/>
<img src="https://travis-ci.org/viktorhajer/simple-pdf-viewer.svg?branch=master"/>
<img src="https://img.shields.io/badge/paypal-donate-green.svg" alt="PayPal donate button" />

This is a simple but smart PDF Viewer component for angular/ionic websites.

Demo page

https://viktorhajer.github.io/simple-pdf-viewer/

Features

  • Open: the src can be one of the following: file URL, Uint8Array or PDFSource
  • Separated methods to open javascript File object or http URL
  • Display: PDF conatiner is displayed
  • Information: number of pages, viewport information (zoom, rotation...), meta information (author, subject, creator...)
  • Navigation: navigate to the first page, the last page, next page, previous page and any of the pages
  • Zooming: zoon in, zoom out, full page, page width, page height, set any zoom as double or percent
  • Rotation: turn the document left or right (+/- 90 degree)
  • Outline / Table of Content: provides the outline if exists and possiblity to navigate to the outline item
  • Searching: case sensitive/insensitve text search (``phraseSearch` and `highlightAll`` can be turn on/off), go to next/prev match, number of matches
  • Bookmarks: create bookmark based on the actual viewport and that can be used for navigation
  • Snapshot: create snapshot about the actual page, scale can be specified (1.0 by default)

Installation Instructions and Usage

https://github.com/viktorhajer/simple-pdf-viewer/wiki/How-to-use

Type Documentation

https://github.com/viktorhajer/simple-pdf-viewer/wiki/API-Documentation

Screenshot

Screenshot

Contribute

See CONTRIBUTING.md

License

MIT © Viktor Hajer