Skip to content

Releases: wojtekmaj/react-pdf

v7.0.0-beta.3

08 May 13:38
9a3e39f
Compare
Choose a tag to compare
v7.0.0-beta.3 Pre-release
Pre-release

Bug fixes

v7.0.0-beta.2

08 May 13:05
240150a
Compare
Choose a tag to compare
v7.0.0-beta.2 Pre-release
Pre-release

Bug fixes

  • Fixed "The --scale-factor CSS-variable must be set" error.

v7.0.0-beta

08 May 12:32
9864158
Compare
Choose a tag to compare
v7.0.0-beta Pre-release
Pre-release

This is one of the biggest update - for React-PDF and for me personally. React-PDF has been rewritten from scratch using TypeScript and React Hooks. I've put a tremendous amount of effort to modernize the package without introducing any major breaking changes. If, however, something have slipped through 137 unit tests we have, please let me know. I hope you will like it.

❗️ = breaking change

What's new?

  • Converted package to TypeScript (#1420).
  • Rewritten package using React Hooks (#1370).
  • Updated PDF.js to 3.6.172.
    • Preparations for editor mode support
    • Removed support for outdated browser versions
    • Font conversion/text selection improvements
    • Annotation improvements
    • Image rendering improvements that allow rendering big images even if they are larger than the canvas limits
    • Accessibility improvements
    • Improved overall performance
    • Reduced memory usage
    • Other features/bugfixes

What's changed?

  • React-PDF is now considerably smaller.
  • ❗️ Bundler-specific entry points are no longer provided. Don't worry though, the setup should be straightforward.
  • ❗️ Dropped support for older browsers.
  • ❗️ Removed legacy renderInteractiveForms prop

v6.2.2

11 Jan 08:01
31911a7
Compare
Choose a tag to compare

Bug fixes

  • Fixed rendering glitches on certain browsers & graphic cards (#1010).

v6.2.1

28 Dec 09:21
2297b2d
Compare
Choose a tag to compare

What's changed?

  • Brought back pageIndex and pageNumber in customTextRenderer args that, despite undocumented, may have been used by some (#1190).
  • Replace typeof window checks with typeof document checks to avoid Deno environment being falsely recognized as browser environment.

Bug fixes

  • Fixed onItemClick callback working only once per item (#997, #1192).
  • Fixed first annotation item not clickable (#1231).
  • Fixed typos in documentation (#1227). Thanks, @flaxflour!

v6.2.0

22 Nov 11:52
08e7c44
Compare
Choose a tag to compare

What's new?

  • Added support for devicePixelRatio prop in Page component.

Bug fixes

  • Pass the actual itemIndex to the customTextRenderer (#1183). Thanks, @paescuj!

v6.1.1

20 Nov 19:15
2f67369
Compare
Choose a tag to compare

Bug fixes

  • Fixed text items misaligned when using customTextRenderer and if textContent items have both text and line break (#1173).

v6.1.0

15 Nov 21:18
133a401
Compare
Choose a tag to compare

What's new?

  • Improved text selection behavior (#1034).

v6.0.3

10 Nov 11:52
b00440b
Compare
Choose a tag to compare

Bug fixes

  • Fixed customTextRenderer called too often and potentially with undefined str (#1151).
  • Fixed text layer rendering twice when using React 18 w. StrictMode on.

v6.0.2

09 Nov 00:12
dd74e14
Compare
Choose a tag to compare

Bug fixes

  • Fixed Vite specific entry causing fake worker to be initialized (#1148).