Skip to content

Releases: wojtekmaj/react-pdf

v3.0.2

22 Mar 15:34
Compare
Choose a tag to compare

Bug fixes

  • Fixed AnnotationLayer not scaling with the page properly when Page component was given custom width prop (#173).

v3.0.1

18 Mar 18:46
Compare
Choose a tag to compare

Bug fixes

  • Fixed customTextRenderer not getting text item index in itemIndex properly, fixed documentation.

v3.0.0

18 Mar 14:16
Compare
Choose a tag to compare

See Upgrade guide from version 2.x to 3.x.

What's new?

  • Context-based architecture. Now, React-PDF's components don't need to be direct descendants of Document component, which makes styling much easier (#124).
  • React-PDF now supports Parcel bundler out of the box (#141).
  • React-PDF now have a set of unit tests to ensure quality and reliability (#125).
  • pageIndex and pageNumber props are now checked better. Now React-PDF will warn you when given pageIndex or pageNumber that does not exist in a given file.
  • Minor performance optimizations when loading a page.
  • Improved performance of SVG rendering when rescaling (#138).
  • Improved rendering performance of Outline.
  • Improved stability of PageAnnotations rendering, especially in non-browser environments.
  • Updated README file to include callbacks from PageAnnotations and PageTextContent components.
  • Updated dependencies of React-PDF as well as of its Sample and Test suites, most notably removed deprecated babel-preset-es2015 in favor of babel-preset-env.
  • You can now use customTextRenderer prop for custom text rendering in Page component (Canvas rendering mode only) (#163). Thanks, @juliakieserman!

What's changed?

  • Messages (loading, error, no data) are now rendered inside their component wrappers, not instead of them.
  • React-PDF class names have been changed to ensure testability and easier styling. For more details, see Upgrade guide for React PDF 2.x users.
  • React-PDF package and its subpackages now all build into dist directories instead of build directories.
  • Annotations stylesheet is not automatically imported anymore. If you'd like to support annotations, you'd need to import it yourself. I you would not, this means less configuration and easier to set up server-side rendering (#133, #140).

Bug fixes

  • Fixed PageSVG not calling onRenderSuccess when rendered page.
  • Fixed unmounting Page component throwing an error when page was not yet loaded.
  • Fixed an issue that could have caused empty page callback in onLoadSuccess.
  • Fixed getPageIndex returning pageIndex higher in priority than pageNumber, when given both.
  • Fixed onLoadSuccess calling onLoadSuccess before state with new pdf has been set, which could result in scripts relying on pdf's existence to fail if they fired too early.
  • Fixed Warning: Failed prop type: text appearing twice in custom PropTypes warning messages.
  • Fixed a configuration bug that could have caused React-PDF to behave unexpectedly on React 15.x environments.

v3.0.0-beta

15 Mar 21:08
Compare
Choose a tag to compare
v3.0.0-beta Pre-release
Pre-release

What's new?

  • React-PDF now supports Parcel bundler out of the box (#141).
  • You can now use customTextRenderer prop for custom text rendering in Page component (Canvas rendering mode only) (#163). Thanks, @juliakieserman!

Bug fixes

  • Fixed a configuration bug that could have caused React-PDF to behave unexpectedly on React 15.x environments.

v3.0.0-alpha.4

05 Feb 10:43
Compare
Choose a tag to compare
v3.0.0-alpha.4 Pre-release
Pre-release

This is an emergency update because of breaking changes introduced in Mozilla's pdfjs-dist, which could have prevented you from using entry.noworker.js.

v2.5.3

05 Feb 10:32
Compare
Choose a tag to compare

This is an emergency update because of breaking changes introduced in Mozilla's pdfjs-dist, which could have prevented you from using entry.noworker.js.

v3.0.0-alpha.3

25 Jan 23:55
Compare
Choose a tag to compare
v3.0.0-alpha.3 Pre-release
Pre-release

What's new?

  • Context-based architecture. Now, React-PDF's components don't need to be direct descendants of Document component, which makes styling much easier (#124).

What's changed?

  • React-PDF package and its subpackages now all build into dist directories instead of build directories.
  • Annotations stylesheet is not automatically imported anymore. If you'd like to support annotations, you'd need to import it yourself. I you would not, this means less configuration and easier to set up server-side rendering (#133, #140).

Bug fixes

  • Fixes React-PDF requiring too high version of React (^16.2 instead of >=15.5).

v3.0.0-alpha.2

23 Jan 23:57
Compare
Choose a tag to compare
v3.0.0-alpha.2 Pre-release
Pre-release

What's new?

  • Improved performance of SVG rendering when rescaling (#138).
  • Improved rendering performance of Outline.
  • Improved stability of PageAnnotations rendering, especially in non-browser environments.
  • Updated README file to include callbacks from PageAnnotations and PageTextContent components.
  • Updated dependencies of React-PDF as well as of its Sample and Test suites, most notably removed deprecated babel-preset-es2015 in favor of babel-preset-env.

Bug fixes

  • Fix Warning: Failed prop type: text appearing twice in custom PropTypes warning messages.

v3.0.0-alpha

21 Jan 16:40
Compare
Choose a tag to compare
v3.0.0-alpha Pre-release
Pre-release

What's new?

  • React-PDF now have a set of unit tests to ensure quality and reliability (#125).
  • pageIndex and pageNumber props are now checked better. Now React-PDF will warn you when given pageIndex or pageNumber that does not exist in a given file.
  • Minor performance optimizations when loading a page.

What's changed?

  • Messages (loading, error, no data) are now rendered inside their component wrappers, not instead of them.
  • React-PDF class names have been changed to ensure testability and easier styling. For more details, see Upgrade guide for React PDF 2.x users.

Bug fixes

  • Fixed PageSVG not calling onRenderSuccess when rendered page.
  • Fixed unmounting Page component throwing an error when page was not yet loaded.
  • Fixed an issue that could have caused empty page callback in onLoadSuccess.
  • Fixed getPageIndex returning pageIndex higher in priority than pageNumber, when given both.
  • Fix onLoadSuccess calling onLoadSuccess before state with new pdf has been set, which could result in scripts relying on pdf's existence to fail if they fired too early.

v2.5.2

01 Jan 19:07
Compare
Choose a tag to compare

Bug fixes

  • Fix RenderingCancelledExceptions being thrown to the console after PDF.js rendering cancellation handling change (#122).