Skip to content

Releases: wojtekmaj/react-pdf

v2.0.0-beta.2

11 Aug 23:26
Compare
Choose a tag to compare
v2.0.0-beta.2 Pre-release
Pre-release

What's new?

  • Optimized NPM package. It no longer includes files not necessary for end user.

Bug fixes

  • React-PDF will no longer warn Warning: setState(...): Can only update a mounted or mounting component. if you unmount it while loading a file or rendering a page (#43).

v2.0.0-beta

19 Jul 23:13
Compare
Choose a tag to compare
v2.0.0-beta Pre-release
Pre-release

What's new?

  • Updated README file.
    • Added instructions for non-Webpack projects.
    • Added instructions for babel-polyfill.
  • Default entry will now display a warning if you're developing on a local file system.
  • React-PDF will now display a warning if you're developing on a local file system and you're attempting to load a local PDF file.
  • New entry - entry.noloader - which gives you an ability not to create a separate thread for rendering PDFs. See README for more information.
  • All React-PDF methods (loadDocument, loadPage etc.) now return a promise for your convenience.

Bug fixes

  • Fixed React-PDF failing to load if no babel-polyfill was included.
  • Fixed PDF.js attempting to load worker from a random location (depending on the name of the last script included in head at the moment of loading PDF.js). It is now set to pdf.worker.js (nnarhinen/react-pdf#39).

v2.0.0-alpha.7

17 Jul 13:32
Compare
Choose a tag to compare
v2.0.0-alpha.7 Pre-release
Pre-release

What's new

  • Enhanced text layers alignment.
  • New sample PDFs were added.

Bug fixes

  • Fix Outline component not properly getting item destination from PDF documents created in Microsoft Word.

v2.0.0-alpha.6

17 Jul 09:50
Compare
Choose a tag to compare
v2.0.0-alpha.6 Pre-release
Pre-release

Bug fixes

  • Fix horizontal alignment of text layers when the layer started/ended with whitespace characters.
  • Fix horizontal alignment of text layers when the font embedded in PDF failed to render correctly.
  • Fix Sample and Test pages not resetting pageNumber on file change.

v2.0.0-alpha.5

17 Jul 02:31
Compare
Choose a tag to compare
v2.0.0-alpha.5 Pre-release
Pre-release

Bug fixes

  • Fix page rendered too small on HiDPI devices.

v2.0.0-alpha.4

17 Jul 01:52
Compare
Choose a tag to compare
v2.0.0-alpha.4 Pre-release
Pre-release

Bug fixes

  • Fixed vertical alignment of text layers.

v2.0.0-alpha.3

16 Jul 23:50
Compare
Choose a tag to compare
v2.0.0-alpha.3 Pre-release
Pre-release

Bug fixes

  • Fix text layers not rotating with the page rotation.
  • PageCanvas component no longer need external CSS to render canvas properly.

v2.0.0-alpha.2

16 Jul 22:31
Compare
Choose a tag to compare
v2.0.0-alpha.2 Pre-release
Pre-release

What's new?

  • Page component now renders text layers! This means the text can be selected or read by a screen reader (nnarhinen/react-pdf#52).

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.