Rough plan here: (A) Subtract (i.e. reserve) the unwritable margins on the physical sheet, when determining the area that we have available for placing our grid of pages. (B) Let each individual page account for its unwritable margins, too. This happens automatically, so it's easy/convenient. (I don't love it since it's got a hint of redundancy, given that weve already accounted for unwritable margins at the edge of the sheet. Arguably, we could "collapse" the exterior per-page unwritable margins into the sheet's unwritable margin. But that gets somewhat complex due to the scale factors involved; and due to the possibility of the pages having differing margin from the sheet on the relevant side due to being rotated in bug 1669905; and due to the fact that the unwritable margins are already overlaid with each page's own user-configurable margin. This addresses both "clipped" and "smooshed" concerns in comment 0 here, except for the scenario where unwritable margins are 0 (e.g. with print-to-PDF) in which case smooshing is still a concern. To address that, I plan on: (C) Enforce a minimum separation between the pages on a sheet (maybe 1/8th of an inch). Note that this may end up meaning that we've got a little extra space in one axis or another, since the pages' aspect ratio won't necessarily match the available-area-on-the-sheet aspect ratio. I'll just center the page-grid in whichever axis has extra space. (This is already something that we'll need to handle in bug 1669905 for the scenario where the pages are rotated with respect to the sheet.)
Bug 1670068 Comment 2 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Rough plan here: (A) Subtract (i.e. reserve) the unwritable margins on the physical sheet, when determining the area that we have available for placing our grid of pages. (B) Let each individual page account for its unwritable margins, too. This happens automatically, so it's easy/convenient. (I don't love it since it's got a hint of redundancy, given that weve already accounted for unwritable margins at the edge of the sheet. Theoretically/arguably, we could "collapse" the exterior per-page unwritable margins into the sheet's unwritable margin, for the pages that are at the edge of the sheet. But that gets somewhat complex due to the possibility of the pages having differing margin from the sheet on the relevant side, due to being rotated in bug 1669905; and it's also complex due to the fact that the unwritable margins are already overlaid with each page's own user-configurable margin. So: this might be fodder for a followup bug, but not something to worry about for now.) These parts -- (A)/(B) -- address both the "clipped" and the "smooshed" concerns in comment 0 here, *except* for in the scenario where unwritable margins are 0 (e.g. with print-to-PDF) in which case smooshing is still a concern. To address that, I plan on also doing: (C) Enforce a minimum separation between the pages on a sheet (maybe 1/8th of an inch). Note that (A) and (C) will typically end up meaning that we've got a little extra space in one axis or another, since the pages' aspect ratio won't necessarily match the available-area-on-the-sheet aspect ratio. I'll just center the page-grid in whichever axis has extra space. (This is already something that we'll need to handle in bug 1669905 for the scenario where the pages are rotated with respect to the sheet.)