Page spliting on print
- Dominant language
- JavaScript
- Stars
- 4.5k
- Forks
- 688
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to print an HTML page, inside it the page size is set to 210mm x 110mm, media print also for the same size... but when printing it is dividing into two pages of the same size with the second one blank
Like the example in the picture below
Does anyone know how to avoid this second page?
printOptions:
```
var printOptions: any = {
printable: this.modeloFactura,
type: 'raw-html',
documentTitle: 'Factura',
maxWidth: 210,
maxHeight: 110,
style: `
@page { size: 210mm 110mm; margin: 0; }
@media print { html, body { width: 210mm; height: 110mm; margin: 0; } }
body > div, body, html { width: 99% ; height:99%; max-width:210mm ; max-height:110mm } `,
};
```

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.