Skip to content

Instantly share code, notes, and snippets.

@rg3915
Last active September 24, 2018 04:44
Show Gist options
  • Select an option

  • Save rg3915/da3cf242c33f538b80d6d849ce8e5fa2 to your computer and use it in GitHub Desktop.

Select an option

Save rg3915/da3cf242c33f538b80d6d849ce8e5fa2 to your computer and use it in GitHub Desktop.
Imprimindo itens com quebra de página. Print items with page break.
.break {
page-break-before: always !important;
}
function printDiv(divName) {
// {{ request.path }} is Jinja.
var printWindow = window.open('{{ request.path }}' + 'print/')
printWindow.addEventListener('load', function() {
printWindow.print();
printWindow.close();
}, true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment