Check out the Live Demo here, apologies for the messy CSS as I have been experimenting with different styles.
I am currently attempting to print PDF files using the browser's print dialog. Each file consists of 4 pages in the DIN lang format with an additional 3mm on each side.
In the HTML code below, each .page
represents a physical page with dimensions outlined above. The printable area is precisely the DIN lang measurements (105mm x 210mm) centered on the page.
Despite my efforts, I am struggling to make the .page
element fit perfectly into the parameters set in @page
. There seems to be a slight excess height that becomes more noticeable when additional pages are added. When I include page-break-after: always;
, it appears that the first page is already too tall (resulting in what seems like a blank page following it).