Replies: 1 comment
-
You could pass a different |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to draw and mark up the page canvas. I need to implement drawing, panning, undo, erase, and clear.
When I am panning and clearing, I am trying to manipulate the underlying page with translations but the page itself does not move. When I draw new shapes, they are drawn with the translation. Is this underlying page (the PDF page) special some how?
When I try to clear with
clearRect
, it wipes out the drawing itself and overlays white. Is there a way for me to re-render the page? I saw that there is a method calleddrawPageOnCanvas
inPageCanvas.jsx
but I do not know how to call it, if I can, or if there is a better way.I am still new to using Canvas and React so do not know if this it the right approach for trying to annotate or manipulate the PDF page. Thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions