Skip to content

v1.1.0

Compare
Choose a tag to compare
@wojtekmaj wojtekmaj released this 11 Nov 19:38

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.