- Print your screen incluide(css,image) with Bootstrap. Save in PDF or another extension.
- Html2Canvas
- jQuery
- lib/html2canvas.js
- $(function(){
$("#printScreenBtn").printScreen();});
Call button in HTML
<button class="btn btn-success" id="printScreenBtn" type="button">
This example print all your screen, really all!
Simple like that!
$(".printScreenBtn").printScreen({hiddenItens:".notPrint", targetObj: document.body, landScape: true});
- hiddenItens: Objects on your screen to hide when it generate the impression separated by comma (,) ex: hiddenItens:".notPrint, #foo1, .foo2"
- targetObj: Element that will be picked up by print.
- landScape: Force print in landScape orientation, default is false.