This component is custom implementation of the PDF JS Viewer.
Main Features:
- Support to binary files
- Support to URL files
- Support to custom events
- Support to view annotations
- Support to programatically add Annotations by using PDFAnnotate Library (https://github.com/highkite/pdfAnnotate)
- Security protection against embeded Javascripts
PDF JS is a Library provided by Mozilla that allows us to handle PDFs in the browser.By default they provide a sample "Viewer" that is separated from the PDF JS Library.This component is a custom implementantion of this Viewer not the Library.
The events implemented so far are:'OnInitialized''OnPageRendered''OnDocumentLoaded'Check the documentation on how to implement extra events or reach me using the forums to ask for new events.
This release introduce major changes:
- Updated the PDF.JS Library to (pdfjs-4.5.136 https://mozilla.github.io/pdf.js/getting_started/#download)
- This new version of PDF.JS have some default capabilities for highlight annotations.
- Also simplified the code to make it easier to extend events and other config properties.
- Improved security by enabling a check to block Javascripts embeded in the PDF. This can be enabled or disabled. If disabled your file will still open, but any macros might not work
- Added support to all locales
- Integrated with pdfAnnotate library (https://github.com/highkite/pdfAnnotate) for programatically adding new annotations. (Check the documentation tab for more info)
PDF JS is under Apache License 2.0
https://github.com/mozilla/pdf.js/blob/master/LICENSE