Closed lihaonanGY closed 6 years ago
you will need to pass emulateScreenMedia: false
as a parameter to the request, to force chrome to parse print related CSS. With that chrome will afaik apply both @media print { ... }
and @page { ... }
.
You can then control what content goes on which page using the page-break-XXX rules.
I tried that and it doesn't seem to work, or I'm not doing something right. I created a big table, and set page-break-after: always;
rule to every 10th <tr>
tag, hoping that it will break the page after it, but that doesn't happen. Am I doing something wrong?
I want the content to appear on a separate page, not with other content