Files
craft-libs/crates
midasmatterhorn 7906dfffdd print: shrink-to-fit refuses a sheet the written matrix cannot represent
The plan's scale had no lower bound: for a page far wider than the paper
(a runaway-zoom export or hostile MediaBox, which sheets::read accepts on
finite positive boxes) the scale falls below what the four-decimal,
no-exponent number formatter can write, the '0' it produces is a singular
CTM, and the job spooled a blank page and reported success — the same
outcome the crate already refuses for a bad UserUnit 'rather than
silently printing the wrong physical dimensions'.

Refuse what the output cannot represent: parse back what number() would
write and error when it is zero or more than one percent off. It only
fires for sheets wider than ~4,300 in, so no real job is refused.
Regression test: shrink_to_fit_refuses_a_sheet_the_output_cannot_represent
— plan returned Ok today; with the bound it is a Spool error and nothing
is sent.
2026-10-15 17:56:39 +03:00
..