Skip to content

v2.2.0-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@wojtekmaj wojtekmaj released this 11 Oct 22:08
· 1364 commits to main since this release

What's new?

  • Added support for annotations. This means that active elements like links will now be clickable. You can turn off this feature by setting Page's component renderAnnotations flag to false (#80). Thanks, @flacerdk!
  • You can now pass inputRef to Page and Outline components. inputRef will behave like ref, only it will be applied to root elements returned by these components. This makes things like scrolling to a given page much easier.
  • Errors thrown by React-PDF will now be much more detailed and will include a stack trace. This will help us diagnose potential issues more quickly and make the package better.

What's changed?

  • React-PDF no longer have Webpack listed in dependencies.