package
PDF Viewer using Mozila PDF JS.
npm install pdfviewerGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
3.3 MB
Includes dependencies.
Lightweight PDF viewer using Mozilla's PDF JS.

npm install
npm run buildDeploy dist to your own static server.
See example in test directory
The options PdfViewer accepts are:
pdfUrl(required): URL to your pdf file, can be relative or absolute. If it is a cross-domain path, the remote server must support CORS.
staticHost(required):
Static files host, PdfViewer dependents on Mozila's PDF.js and our viewer.js, which must be served.
onerror(optional):
A custom onerror callback function, if error occurs when reading or rendering your pdf file, this function will be called.
If omitted, our viewer's default error handler will be used.
To get a demo:
npm starthttp://localhost:9000http://localhost:9001broooooklyn
lynweklm@gmail.com