crabbly / crabbly/Print.js

Printing HTML always overflow to next page

Open
#689 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.5k
Forks
688
PR merge metrics
No merged PRs in 30d

Description

## Problem

When printing html with fixed width and height to match with A4 paper size, result seems to always overflow to next page.

```html


YOYO



hiii {{ index + 1 }}



```

```javascript
this.$printJs({
printable: 'paper',
type: 'html',
maxWidth: 'auto',
style: '@media print { @page { size: A4 landscape } }',
targetStyles: ['*']
})
```

## Print result

![image](https://github.com/crabbly/Print.js/assets/58946504/5c3ac077-d3ab-49aa-8e25-b290f78a461f)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.