mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-25 18:47:22 -06:00
HeaderFooter::shrink scales the original page content evenly into the band the header and footer leave free, centred across the page, in display space so rotated pages shrink the way they are shown. The scale is a content stream first inside the q/Q wrapper, tagged as part of the header and footer, so Remove and Update take it away again and backgrounds behind the page stay full size. Margins that leave no room are refused before anything is drawn.