Reputation: 1974
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
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
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