开发者

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

开发者 https://www.devze.com 2023-02-20 18:18 出处:网络
I have a webpage which include some buttons, when i convert the HTML page to pdf, th开发者_StackOverflow中文版e button also come in pdf... i dont want the buttons to be shown in the buttonsIf you are

I have a webpage which include some buttons, when i convert the HTML page to pdf, th开发者_StackOverflow中文版e button also come in pdf... i dont want the buttons to be shown in the buttons


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; }


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"

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号