Is it possible to create a pdf by hiding content elements?
Closed this issue ยท 6 comments
woraput commented
Is it possible to create a pdf by hiding content elements?
ivmarcos commented
Hi @woraput , do you mean like this?
https://codesandbox.io/s/fast-frost-m43fg7?file=/src/App.tsx
woraput commented
Oh absolute yes, Thank you.
t3db0t commented
Is there any way to do the opposite: hiding certain components or elements ONLY when being exported to PDF?
aaronzhongg commented
@t3db0t you can achieve this using data-html2canvas-ignore="true"
t3db0t commented
@aaronzhongg Oh amazing, thank you!
IzzeRodrigues commented
Hi @woraput , do you mean like this?
https://codesandbox.io/s/fast-frost-m43fg7?file=/src/App.tsx
Is there any way to do this in JS?