简体   繁体   中英

How to create a print dialog that displays the current web page's screenshot

I just want to know if there's easy way to create a print dialog for WordPress that outputs on the print dialogue box the actual view of a webpage. P perhaps a full page screenshot might work as long as it has the full page's height.

I tried WP-Screenshot plugin on this page . The plugin outputs a screenshot that can be printed out by adding a print dialogue plugin. However, the the height of the image produced by WP-Screenshot can't be dynamic so I guess I need to find another solution.

I can't find a plugin that has the functionality to print the current webpage with all the styles preserved in the print dialogue. So I'm thinking that screenshot might work.

Any idea or suggestions?

For printing the page and getting print dialog you can simply use window.print()

For better understanding please visit window.print()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM