Forum Academy Marketplace Showcase Pricing Features

Selectpdf - Button is hidden in html but is printed in pdf

On the web page I have a button. When the user clicks this button, it is hidden & then the web page is printed using the selectpdf plugin.
The problem is that the although the button is hidden on the the web page. It 's actually displayed in the pdf.

I have tried to add a pause before calling “Generate PDF from a Web page” but still the button is printed.

I have also used a HTML element, defined a button in it, used onclick to call a javascript function. This function sets the style of the button to display:none & causes a workflow event to be initiated to “Generate PDF from a Web page” event. Still the button is printed.

Does anyone have ideas on the button can be hidden?