pdf-slideshow
v0.1.4
Published
Creates a slideshow from a pdf file.
Downloads
72
Readme
pdf-slideshow
Creates a slideshow from a pdf file.
Install
npm install --save pdf-slideshow
Usage
Have the correct pdf.worker.min.js available.
import React, { Component } from "react";
import PdfSlideShow, { setPdfJsWorkerPath } from "pdf-slideshow";
setPdfJsWorkerPath("pdf.worker.min.js");
export default class App extends Component {
render() {
return (
<div>
<PdfSlideShow pdfLocation="/example.pdf" />
</div>
);
}
}
License
Apache-2.0 © nygrenh