Releases: wojtekmaj/react-pdf
Releases · wojtekmaj/react-pdf
v2.4.2
Bug fixes
- Fixed Document-wide props taking priority over child props. For example, when you wanted to set
rotate
explicitly for one page, it would get overwritten with global setting (#108). - Fixed onDocumentLoad function not bound in example included in README. Thanks, @jkhoang313!
v2.4.1
v2.4.0
What's new?
- Support for internal links (e.g. in table of contents). For them to work you either need to provide
onItemClick
to<Document>
and handle navigating by yourself or ensure that all pages are rendered within<Document>
. - You can now use
inputRef
prop to pass ref function through<Document>
to its root<div>
element.
Bug fixes
- Fix selection sometimes jumping when selecting text (#101).
v2.3.0
What's new?
- Implemented experimental SVG rendering (#55). In the future, SVG renderer will replace current solution, giving excellent performance and accessibility. You can try it out now by setting
renderMode
tosvg
in yourPage
component. - You can now set custom options of PDF.js renderer by using
setOptions
(#85). - Updated PDF.js to 2.0.x.
- As a result, bundle size should be reduced significantly.
Bug fixes
- Fixed minor accessibility issues in test suite.
v2.2.0
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 componentrenderAnnotations
flag to false (#80). Thanks, @flacerdk! - You can now pass
inputRef
toPage
andOutline
components.inputRef
will behave likeref
, 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.
- Updated dependencies.
What's changed?
- React-PDF no longer have Webpack listed in dependencies.
v2.2.0-beta.3
Bug fixes
- Fixed annotations layer covering up text layer, preventing it from being selectable.
v2.2.0-beta.2
Bug fixes
- Fixed annotations CSS not being added to build folder preventing React-PDF from being used when using its prebuilt version.
v2.2.0-beta
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 componentrenderAnnotations
flag to false (#80). Thanks, @flacerdk! - You can now pass
inputRef
toPage
andOutline
components.inputRef
will behave likeref
, 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.