You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed instructions in documentation written for my React-PDF version
I have checked if this bug is not already reported
I have checked if an issue is not listed in Known issues
Description
I found a strange behavior, which I'm not sure is a bug or simply the readme is out of sync with the latest release. From the readme,
If you define width and scale at the same time, the width will be multiplied by a given factor.
However, using the multi-page example from Wiki, when I supply bothwidth (or height) and scale to <Page />, the scale seems to be ignored. In other words, the width does not get adjusted.
Note that when scale is used on its own, i.e. without width or height, the page gets scaled, as expected. As a workaround, I have to apply the scale manually, e.g.
Before you start - checklist
Description
I found a strange behavior, which I'm not sure is a bug or simply the readme is out of sync with the latest release. From the readme,
However, using the multi-page example from Wiki, when I supply both
width
(orheight
) andscale
to<Page />
, thescale
seems to be ignored. In other words, thewidth
does not get adjusted.See this sandbox for a quick demo.
Steps to reproduce
width
andscale
Expected behavior
The page width should be magnified x2 times.
Actual behavior
The page remains at the default
scale
of1.0
.Additional information
Note that when
scale
is used on its own, i.e. withoutwidth
orheight
, the page gets scaled, as expected. As a workaround, I have to apply the scale manually, e.g.Also, same behavior with both
canvas
andsvg
renderMode
.Environment
^4.0.0
^16.6.3
^4.27.1
The text was updated successfully, but these errors were encountered: