Display PDFs in your React app as easily as if they were images.
MIT License
Bot releases are hidden (Show)
Published by wojtekmaj over 1 year ago
Published by wojtekmaj over 1 year ago
Published by wojtekmaj over 1 year ago
--scale-factor
CSS-variable must be set" error.Published by wojtekmaj over 1 year ago
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
renderInteractiveForms
proppageIndex
and pageNumber
in customTextRenderer
args that, despite undocumented, may have been used by some (#1190).typeof window
checks with typeof document
checks to avoid Deno environment being falsely recognized as browser environment.onItemClick
callback working only once per item (#997, #1192).Published by wojtekmaj almost 2 years ago
See Upgrade guide from version 5.x to 6.x.
Note: React <16.8 is not supported. If you're still using React older than 16.8, please use react-pdf@^5.0.0 instead.
❗️ = breaking change
onRenderTextLayerError
and onRenderTextLayerSuccess
onRenderTextLayerError
proponRenderTextLayerSuccess
prop.onGetTextSuccess
is now called with an object containing items
and styles
.TextLayer.css
now must be imported manually for TextLayer to work properly.customTextRenderer
(#1124).file-loader
is now an optional peerDependency (#970). Thanks, @rpaasche!merge-class-names
with clsx
.renderInteractiveForms
prop ignored. Thanks, @liquidautumn!❗️ = breaking change
@babel/runtime
.customTextRenderer
(#1124).onRenderTextLayerError
and onRenderTextLayerSuccess
enhanceTextSelection
prop. This was previously implemented in 6.0.0-beta, but later found deprecated in PDF.js.renderInteractiveForms
prop ignored. Thanks, @liquidautumn!Published by wojtekmaj about 2 years ago
file-loader
is now an optional peerDependency (#970). Thanks, @rpaasche!See Upgrade guide from version 5.x to 6.x.
Note: React <16.8 is not supported. If you're still using React older than 16.8, please use react-pdf@^5.0.0 instead.
❗️ = breaking change
enhanceTextSelection
prop.onRenderTextLayerError
prop.onRenderTextLayerSuccess
prop.onGetTextSuccess
is now called with an object containing items
and styles
.TextLayer.css
now must be imported manually for TextLayer to work properly.Published by wojtekmaj over 2 years ago
canvas
rendering mode (default) when using React 18 w. StrictMode on (#972).