The following repo is an example of how to leverage the PDFJS project (opensource) for inline PDF viewing in your OpenFin application.
Following setup curtesy of https://github.com/mozilla/pdf.js/wiki/Setup-pdf.js-in-a-website:
- Download gh-pages
- Extract the ZIP file (a directory called "pdf.js-gh-pages" will be created).
- 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.
npm install
npm start
openfin -l app.json
See PDFJS Project for more details.
- 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.
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/
Please enter an issue in the repo for any questions or problems.
Alternatively, please contact us at support@openfin.co