Skip to content

Releases: wojtekmaj/react-pdf

v1.3.1

12 Nov 12:59
Compare
Choose a tag to compare

Bug fixes

  • Fixed an error causing onPageRender callback not being fired if onPageLoad was not specified as a valid function.

v1.3.0

12 Nov 12:33
Compare
Choose a tag to compare

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

12 Nov 00:46
Compare
Choose a tag to compare

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

11 Nov 19:38
Compare
Choose a tag to compare

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.

v1.0.1

16 Jul 01:38
Compare
Choose a tag to compare

What's new?

  • Added error prop in which you can specify what to display in case of PDF/page load failure.
  • Added onDocumentError and onPageError callbacks that are called in case of PDF/page load failure.

v1.0.0

11 Nov 17:03
Compare
Choose a tag to compare

I'm happy to announce the new version of react-pdf based on an awesome work of Niklas Närhinen niklas@narhinen.net!

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.