ATS & Technology

The Engineering Behind One-Page Auto-Fit: Solving the Resume Formatting Nightmare

How our Design Studio fits a resume to 1 page, 2 pages or the fewest pages: a search that tightens spacing, margins and then type, checks each step against the real page count, and never makes the resume worse.

SP
Satish PophaleFounder of Infinite Resume
May 22, 2026Updated October 18, 20268 min read

We've all been there. You've spent hours writing the perfect resume. Your bullet points are punchy, your metrics are impressive, and the template looks stunning. But there's one problem: your resume spills over onto a second page by exactly three lines. What follows is the universal resume formatting nightmare—you start highlighting text, shrinking the font size from 11pt to 10.5pt. You drag the bottom margin down. You reduce the line spacing. Suddenly, the entire layout shatters. The date alignments break, the section headers overlap, and the icons become misaligned. You fix the icons, but now the text looks disproportionately tiny. Sound familiar? Today, we're announcing the end of the formatting nightmare. With the launch of our new Design Studio, we are introducing "One-Page Auto-Fit": one click that pulls a resume running a few lines over back onto a single page, without breaking the layout. And because we believe a perfect resume is a basic right, this feature is free forever.

Why one-page fitting is difficult

A resume layout contains coupled variables: font size, line height, section spacing, margins, icons, columns, and page geometry. Changing only one can create a new overflow or make the page hard to read. Different resume builders solve this in different ways, so this article explains Infinite Resume's own approach without speculating about a competitor's private implementation.

The Broken Layout Cascade

A naive implementation that changes only text size can leave spacing, icons, or fixed regions out of proportion. A reliable fitting system therefore needs to measure the rendered document repeatedly and change a coordinated set of layout values within readable limits.

Our solution: a single point of control

When we rebuilt the Infinite Resume engine, we abandoned HTML-to-PDF entirely. We integrated Typst, a next-generation professional typesetting engine compiled directly to WebAssembly. This allowed us to build our entire template ecosystem using a "Single Point of Control" architecture.

Relative `em` Scaling

Instead of using hardcoded absolute sizes (like 11pt font), every type-bound element in an Infinite Resume template is mathematically bound to a master root value using relative CSS-like `em` units. If the root font size changes, the section spacing, line height, stroke weights and SVG icon sizes all scale exactly in proportion. Page geometry is the deliberate exception: margins, sidebar widths and banner heights stay absolute, because the paper is a fixed physical object and the entire point of shrinking type is to buy space inside a fixed frame — a frame that scaled along with the type would recover nothing.

How the Fit Search Works

When you choose a page target in our Design Studio (1 page, 2 pages or the fewest pages), the engine doesn't guess a new font size. It searches, and it checks every guess against a real render. Until 18 October 2026 that search was a bisection inside the Typst compile itself, aimed at one page only. It now runs in a background worker in your browser: each step it tries is an ordinary compile, and it reads the page count back from the paginated result, so the answer is what the layout engine actually did rather than an estimate.

Type is the last thing it spends, not the first. One density setting walks the levers in the order that costs the reader least: the gaps between sections, between entries and under the header, then line spacing and bullet gaps, each only as far as the bottom of its standard band; then page margins, down to the 0.5in print floor; and only then the type, down to a 9pt body. The search brackets the answer, interpolating on how far the content runs over and bisecting when that stalls, and then starts from its last answer as you type, so a typical edit costs one compile. On 2 pages, a mostly empty second page is pulled back onto one when spacing and margins alone can do it. Fewest pages never touches the type.

If the target is still out of reach, it changes nothing: your resume renders at your own settings, exactly as with Auto-Fit off, and the Design Studio tells you roughly how many lines too long it is. An opt-in compact setting, labelled as below the industry standard, lowers the floor to 7pt. We measured it on 18 October 2026 across our 52 templates. A resume running about a quarter of a page over reached one page at 9pt or larger, with spacing inside its bands, in 51 of them. A resume running about a page and a half fit in only 6, the templates where it ran just 1.1 to 1.3 pages, and in 51 with the compact setting.

Readable text-layer output

The best part of this technological achievement? It preserves selectable text-layer output. Because the scaling happens natively within the typesetting compilation rather than as an optical HTML squish, the underlying text layer of the final PDF remains readable and extractable, which helps reduce common ATS parsing risks.

No More Truncated Sections

Combined with our strict "sticky block" logic, the Auto-Fit engine ensures that section titles are never orphaned at the bottom of a page, and critical bullet points are never inexplicably chopped in half.


Conclusion

The One-Page Auto-Fit engine is now live within the Infinite Resume Design Studio. You can now drag-and-drop your sections, tweak your margins, and, when your resume runs a little over, pick 1 page, 2 pages or the fewest pages and watch the algorithm pull it back onto an ATS-friendly layout with one click. Try it out on your dashboard today—no credit card required, no watermarks, free.

Auto-FitResume LayoutTypstWebAssemblyFree Resume Builder

Ready to build your resume?

Put these insights into action — free to build and download, no credit card required.