Releases: wojtekmaj/react-pdf
Releases · wojtekmaj/react-pdf
v1.3.2
v1.3.1
v1.3.0
What's new?
- React-PDF will now display a message "No PDF file specified." if, well, no PDF file was specified.
- React-PDF will now warn you about Cross Origin Policy not only when passing an URL directly, but also in parameter object.
- You can now pass a Blob as
file
prop value. - You can now pass an ArrayBuffer as
file
prop value. - Added testing page.
Bug fixes
- React-PDF will no longer throw an error if
file
prop changed fromnull
to a parameter object.
v1.2.0
v1.1.0
What's new?
- You no longer need to choose whether you need to pass a PDF as
content
orfile
prop. Now you can pass./sample.pdf
,require('./sample.pdf')
ordata:...
tofile
prop and React-PDF will figure it out on its own. - React-PDF will now warn you if you're using it not on HTTP/HTTPS protocol as it is very likely to fail to load PDF because of Cross Origin Policy.
Bug fixes
- Documentation now uses valid props in usage example.
v1.0.1
v1.0.0
I'm happy to announce the new version of react-pdf based on an awesome work of Niklas Närhinen [email protected]!
What's new?
- The code has been completely rewritten to ES6.
- Updated all dependencies, most notably PDF.js.
- new callback: onPageLoad. Unlike onPageLoad, it will be fired when the page is completely visible for the user. This is especially useful for very heavy PDFs in which tendering a page takes more time than a blink of an eye.
Bug fixes
- Fixed an error that caused pages to be rendered on top of each other.