reveal-pdf
v1.0.1
Published
[![npm version](https://badge.fury.io/js/reveal-pdf.svg) ![npm](https://img.shields.io/npm/dt/reveal-pdf)](https://www.npmjs.com/package/reveal-pdf) [![publish](https://github.com/dvirtz/reveal-pdf/workflows/Release/badge.svg)](https://github.com/dvirtz/
Downloads
2
Readme
reveal-pdf
A reveal.js plugin for viewing PDF page as image:
Check out the live demo.
The images are generated using pdf.js.
Installation
Download and install the package in your project:
npm install --save reveal-pdf
or
yarn add reveal-pdf
or just download dist/reveal-pdf.js into the plugin folder of your reveal.js presentation, e.g..
plugins/reveal-pdf
.Add the plugins to the dependencies in your presentation
<script src="node_modules/reveal-pdf/dist/reveal-pdf.js"></script>
// ... Reveal.initialize({ // ... plugins: [ // ... RevealPdf, ] });
If you're using reveal-md you can add a script to load the plugin:
options.plugins.push(RevealPdf)
and then add a reference to this script along with
node_modules/reveal-pdf/dist/timeline.js
to thescripts
object insidereveal-md.json
config file.
For reference, take a look at the demo package in this repo.