Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

openfin/pdfjs-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDFJS Example

Overview

The following repo is an example of how to leverage the PDFJS project (opensource) for inline PDF viewing in your OpenFin application.

Guidelines

Following setup curtesy of https://github.com/mozilla/pdf.js/wiki/Setup-pdf.js-in-a-website:

  1. Download gh-pages
  2. Extract the ZIP file (a directory called "pdf.js-gh-pages" will be created).
  3. Copy the following directories to the website:
  • pdf.js-gh-pages/build/
  • pdf.js-gh-pages/web/
  • The web/ directory contains a 1 MB PDF file called "compressed.tracemonkey-pldi-09.pdf". This file is only used as an example for the demo and can safely be removed.

Launch

Run locally

  • npm install
  • npm start
  • openfin -l app.json

More Info

See PDFJS Project for more details.

Disclaimers

  • This is a starter example and intended to demonstrate to app providers a sample of how to approach an implementation. There are potentially other ways to approach it and alternatives could be considered.
  • This is an open source project and all are encouraged to contribute.
  • Its possible that the repo is not actively maintained.

License

MIT

The code in this repository is covered by the included license.

However, if you run this code, it may call on the OpenFin RVM or OpenFin Runtime, which are covered by OpenFin’s Developer, Community, and Enterprise licenses. You can learn more about OpenFin licensing at the links listed below or just email us at support@openfin.co with questions.

https://openfin.co/developer-agreement/
https://openfin.co/licensing/

Support

Please enter an issue in the repo for any questions or problems.
Alternatively, please contact us at support@openfin.co

About

Demo of integration of the PDFJS project into OpenFin for inline PDF viewing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages