Pal Singh
Pal Singh

Reputation: 1974

Dont' Show HTML Buttons when i convert them to pdf online

I have a webpage which include some buttons, when i convert the HTML page to pdf, the button also come in pdf... i dont want the buttons to be shown in the buttons

Upvotes: 0

Views: 329

Answers (2)

Zen Pak
Zen Pak

Reputation: 578

Can you maybe use jquery to do something like the following below when the link "Publish to pdf is clicked" before the whole javascript processing is done to convert the html to pdf:

$(link).click(function(){ $(this).css("display", "none"); });

NOTE: "link" above is the name of your link "Publish to pdf"

Upvotes: 0

Tyler Crompton
Tyler Crompton

Reputation: 12672

If you are printing to a PDF you can make a print stylesheet that goes something like input[type="button"], input[type="submit"], input[type="reset"] { display: none; }

Upvotes: 2

Related Questions