Replies: 2 comments
-
Let me simplify this question. In this example, I want to put a button or checkbox, and then a user click it, then "Acme Inc" disappear on PDF. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The easiest way to do this would be to take advantage of https://codesandbox.io/s/react-pdf-watermark-toggleable-890w1i |
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'm trying to implement a feature to show rectangles on PDF. Thanks to this discussion, I could implement it with canvasRef and useRef.
Now I want to implement a feature of checkbox to turning on/off showing rectangles.
I tried to use useState for rectangles.(e.g. To show --> [rect1,rect2] , not to show --> []).
A component containing Document and Page was called, but onRenderSuccess of Page was not called and previous rectangles remained.
How can I reload PDF with the same file ?
Beta Was this translation helpful? Give feedback.
All reactions