Skip to content

Upgrade guide from version 6.x to 7.x

Wojciech Maj edited this page Jun 3, 2023 · 3 revisions

React-PDF is now natively TypeScript

If you use React-PDF in a JavaScript project, you may continue to do so without taking any action.

If you use React-PDF in a TypeScript project, you should remove external @types/react-pdf dependency from your project.

Bundler-specific entry points are no longer provided

Bundler-specific entry points attempted to set up PDF.js worker for you, but they did more harm than good. Please follow instructions in README, especially Configure PDF.js worker.

Dropped support for older browsers

No action is required on coding side, but you should be aware that older browsers may not work correctly or even at all.

Removed legacy renderInteractiveForms prop

You should use renderForms prop instead.