Releases: wojtekmaj/react-pdf
Releases · wojtekmaj/react-pdf
v2.0.0-beta.2
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
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
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
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
Bug fixes
- Fix page rendered too small on HiDPI devices.
v2.0.0-alpha.4
Bug fixes
- Fixed vertical alignment of text layers.
v2.0.0-alpha.3
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
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
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
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 insideDocument
component. And yes, this means you can now render many pages at once!
- Documents are now loaded using
onLoadSuccess
ofDocument
andPage
components now returnpdf
andpage
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.