Computing US Architectural Print Scales, Sheet-Fit Matrices, and Ruler Conversions in Pure TypeScript
A floor plan exported to PDF looks clean on a laptop screen until someone sends it to a FedEx plotter or home laser printer and puts a triangular architectural scale ruler against the paper. If the drawing was exported without subtracting border margins and the title block height — or if the printer driver silently applied "Fit to Page" ( 94% scaling) — every 1/4" = 1'-0" wall on the page reads…
The article explains how to compute US architectural print scales, sheet-fit matrices, and ruler conversions using TypeScript. It begins by highlighting a common issue with exported floor plans from PDFs onto printers, which often results in distorted measurements due to border margins and title blocks. To address this, a TypeScript module in PlanCaliber was developed to solve sheet-fit matrices for various standard architectural scales and convert real-world measurements to ruler fractions.
The module calculates the net printable viewport for each sheet size by subtracting margins and title block heights, and then finds the largest fitting scale using a single deterministic scan.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to