Releases: dealfonso/pdfjs-viewer
2.0.0
What's Changed
- change the cleaning method of the pages from
empty()
tohtml("")
to try to solve one reported bug when generating some pages - use plain HTML objects in callbacks instead of jQuery objects. The library still depends on jQuery (or a jQuery-compatible lib), and is compatible with jQuery.
- support for nojquery in the library (and prioritize the use over jQuery)
- create sourcemap files for minified dist files (i.e.
pdfjs-viewer.min.js.map
andpdfjs-viewer.min.css.map
) - move the distributable files to the
dist
folder (now the CDN links are https://cdn.jsdelivr.net/gh/dealfonso/pdfjs-viewer/dist/pdfjs-viewer.min.js and https://cdn.jsdelivr.net/gh/dealfonso/pdfjs-viewer/dist/pdfjs-viewer.min.css) - bug corrections
Full Changelog: 1.1.2...2.0.0
1.1.2
1.1.1
PDFjs-viewer is an embeddable and easily customizable PDF viewer that is implemented using the PDF.js library.
So, if you have a div
in your web application, you can convert it in a PDF viewer as in the next example:
<div class="pdfjs-viewer">
</div>
<script>
let pdfViewer = new PDFjsViewer($('.pdfjs-viewer'));
pdfViewer.loadDocument("https://github.com/dealfonso/pdfjs-viewer/raw/main/examples/test.pdf");
</script>
or even simpler
<div class="pdfjs-viewer" pdf-document="https://github.com/dealfonso/pdfjs-viewer/raw/main/examples/test.pdf" initial-zoom="fit">
1.1.0
PDFjs-viewer is an embeddable and easily customizable PDF viewer that is implemented using the PDF.js library.
So, if you have a div
in your web application, you can convert it in a PDF viewer as in the next example:
<div class="pdfjs-viewer">
</div>
<script>
let pdfViewer = new PDFjsViewer($('.pdfjs-viewer'));
pdfViewer.loadDocument("https://github.com/dealfonso/pdfjs-viewer/raw/main/examples/test.pdf");
</script>
or even simpler
<div class="pdfjs-viewer" pdf-document="https://github.com/dealfonso/pdfjs-viewer/raw/main/examples/test.pdf" initial-zoom="fit">
pdfjs-viewer 1.0.1
PDFjs-viewer is an embeddable and easily customizable PDF viewer that is implemented using the PDF.js library.
So, if you have a div
in your web application, you can convert it in a PDF viewer as in the next example:
<div class="pdfjs-viewer">
</div>
<script>
let pdfViewer = new PDFjsViewer($('.pdfjs-viewer'));
pdfViewer.loadDocument("https://github.com/dealfonso/pdfjs-viewer/raw/main/examples/test.pdf");
</script>
1.0.0 - first public version
PDFjs-viewer is a embeddable and easily customizable PDF viewer that is implemented using the PDF.js library.
So, if you have a div
in your web application, you can convert it in a PDF viewer as in the next example:
<div class="pdfjs-viewer">
</div>
<script>
let pdfViewer = new PDFjsViewer($('.pdfjs-viewer'));
pdfViewer.loadDocument("https://github.com/dealfonso/pdfjs-viewer/raw/main/examples/test.pdf");
</script>