Printable Area
craigbass76 opened this issue · comments
Craig Parker commented
I'm not sure how to define page margins reliably, mostly top and bottom where content runs across a page break. When I'm using pandoc/weasyprint to make HTML and PDFs, I've specified a <div class="pb">
, and styled it { page-break-before: always; }
, but Weasyprint took care of actual paper margins for me. I'm not sure how to do the same thing with printThis, or even if I can.
Are there some good working examples out in the wild to look at?
Jason Day commented
There's not a lot of reliability, but you can try to use the @page
directive.
i.e. -
@page {
size: A4;
margin: 0 !important;
}