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.