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
Thanks for this great repo. I am attempting to build a pdf editor over the react-pdf page that is rendered. I understand that the Page component exposes the canvasRef, but I thought of creating a separate Canvas element that is overlaid on the react-pdf Page. The Page is displayed within a parent div, which then scales the page beyond the initial 596 x 842 px (A4 size) and displays a scrollbar for the user to scroll down on the page. My canvas element is positioned directly over the Page, but due to something that I am not doing correctly, the scaling of my canvas is not correct, and gets either pixelated or drawings look thicker.
This is not an issue with the react-pdf repo, but rather assistance I need with regards to scaling. The issue experienced is that the drawings look fine at 596 x 842 and smaller, but once the screen scales bigger than this, the drawings looks pixelated and thicker. Can someone please assist in anyway with this scaling issue? I have been at this for the last 2 days with no joy.
Here is my current code for the render part of my component
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Thanks for this great repo. I am attempting to build a pdf editor over the react-pdf page that is rendered. I understand that the Page component exposes the canvasRef, but I thought of creating a separate Canvas element that is overlaid on the react-pdf Page. The Page is displayed within a parent div, which then scales the page beyond the initial 596 x 842 px (A4 size) and displays a scrollbar for the user to scroll down on the page. My canvas element is positioned directly over the Page, but due to something that I am not doing correctly, the scaling of my canvas is not correct, and gets either pixelated or drawings look thicker.
This is not an issue with the react-pdf repo, but rather assistance I need with regards to scaling. The issue experienced is that the drawings look fine at 596 x 842 and smaller, but once the screen scales bigger than this, the drawings looks pixelated and thicker. Can someone please assist in anyway with this scaling issue? I have been at this for the last 2 days with no joy.
Here is my current code for the render part of my component
And this is the balance of code
Also, if it might help, here is the styling for this component
Beta Was this translation helpful? Give feedback.
All reactions