i need to create a pdf when a button is clicked,
the issue is the that the component that i want to make the pdf of is a on a different page its a page itself,
so how can i do that,
i tried doing this but it doesnt work the pdf comes empty

is there any workaround or any approach??