Skip to content

Releases: wojtekmaj/react-pdf

v2.0.0-alpha.1

16 Jul 19:41
Compare
Choose a tag to compare
v2.0.0-alpha.1 Pre-release
Pre-release

What's new?

  • You can now render table of contents using new Outline component.
  • It's now easier to style No data, Error and Loading messages as they now have their own CSS classes.
  • Sample and Test pages have been updated.
    • Both pages are now mobile friendly.
    • Sample page now renders an entire PDF at once.
    • Test page now has an Outline section with sample navigation.

Bug fixes

  • Fixed pages rendered sometimes being blurry due to the lack of rounding width/height down.
  • Fixed Page component not showing loader when switching pages.

v2.0.0-alpha

16 Jul 01:39
Compare
Choose a tag to compare
v2.0.0-alpha Pre-release
Pre-release

What's new?

  • Now there's more React in React. React-PDF's structure has been completely rewritten (#27).
    • Documents are now loaded using Document component.
    • Pages are now rendered in Page components. They are meant to be rendered inside Document component. And yes, this means you can now render many pages at once!
  • onLoadSuccess of Document and Page components now return pdf and page respectively, giving you access to full PDF.js API.
  • React-PDF now respects page's default rotation. In v1.x, rotation was always set to 0 unless rotate prop was passed. Now React-PDF renders pages in their default rotation as defined in PDF file.

v1.8.3

16 Jul 00:51
Compare
Choose a tag to compare

Bug fixes

  • Fix an issue with react-pdf test and sample pages using ../ as their React-PDF path, which caused Webpack to fail to build them unless you manually installed Webpack in root project's directory.

v1.8.2

14 Jul 17:43
Compare
Choose a tag to compare

Bug fixes

  • Fix an error that resulted in Module not found: 'worker-loader' error on non-Webpack environments.
  • Fix an error that may have occasionally cause React-PDF to fail to load the page.

v1.8.1

14 Jul 03:51
Compare
Choose a tag to compare

Bug fixes

  • Fixed an issue that could cause React-PDF to fail on non-ES6 environments.

v1.8.0

14 Jul 03:16
Compare
Choose a tag to compare

What's new?

  • You can now rotate the page using prop rotate. See README.md for more details.

v1.7.0

14 Jul 01:56
Compare
Choose a tag to compare

What's new?

  • React 15.5 is now minimum supported version (previously 15.0).
  • New project structure. Now /sample and /test directories are indpendent from root directory.
  • You can now use react-pdf without worker. See README.md for more details.

Bug fixes

  • A warning Accessing PropTypes via the main React package is deprecated will no longer appear (#29)
  • Fixed an error causing a faulty request to './[Object object]' when loading worker (#10).
  • pdf.worker.js is now working as designed, which means vastly improved performance.

v1.6.1

07 Mar 15:49
Compare
Choose a tag to compare

Bug fixes

  • Fix ES2015 imports not transpiled to commonJS in es5, that could cause disable some users not using Babel from using the module.

v1.6.0

03 Mar 21:26
Compare
Choose a tag to compare

What's new?

  • Added width, height, originalWidth, originalHeight and scale parameters to onPageLoad callback object (#22).

v.1.5.1

05 Feb 13:17
Compare
Choose a tag to compare

Bug fixes

  • Fixed changing pages while the rendering is in progress causing two pages being rendered at the same time resulting in a graphical glitch (#19).