Releases: wojtekmaj/react-pdf
Releases · wojtekmaj/react-pdf
v1.6.1
Bug fixes
- Fix ES2015 imports not transpiled to commonJS in es5, that could cause disable some users not using Babel from using the module.
v1.6.0
What's new?
- Added
width
, height
, originalWidth
, originalHeight
and scale
parameters to onPageLoad callback object (#22).
v.1.5.1
Bug fixes
- Fixed changing pages while the rendering is in progress causing two pages being rendered at the same time resulting in a graphical glitch (#19).
v.1.5.0
What's new?
- Hi-DPI screens are not properly detected and rendered PDFs should no longer be blurry. Hooray! (#18)
width
parameter has been added. You can now specify desired width of the page, if you don't want the default (#18).
v1.4.0
What's new?
- Dependencies have been updated, most notably we use Webpack version 2.x now (#11, #12).
- onDocumentError and onPageError functions now pass error object as an argument, making it easier to debug (#14).
Bug fixes
- Fixed loading PDFs via data URIs failing on Microsoft Edge (#15).
v1.3.2
Bug fixes
- Fixed an error causing a faulty request to './[Object object]' when loading a file from an URL (#9).
v1.3.1
Bug fixes
- Fixed an error causing onPageRender callback not being fired if onPageLoad was not specified as a valid function.
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 from null
to a parameter object.
v1.2.0
What's new?
- New documentation with quick start guide and detailed description of all props.
- You can now pass an object with parameters as
file
prop value. This enables you to take advantage of additional parameters supported by PDF.js, like httpHeaders (#5).
v1.1.0
What's new?
- You no longer need to choose whether you need to pass a PDF as
content
or file
prop. Now you can pass ./sample.pdf
, require('./sample.pdf')
or data:...
to file
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.