Add a Binding Margin (Gutter) to a PDF
A binding or gutter margin is extra space on the bound edge of a page so hole punching, spiral binding, or a staple never covers the content. This tool widens each page of a PDF by the gutter amount and shifts the existing content away from the binding edge — right on odd pages, left on even pages for double-sided printing, or always away from the left edge for single-sided. Content is moved, never scaled, so nothing shrinks or blurs, and everything runs locally in your browser.
How it works
A PDF page has a media box — the rectangle, in points (1 pt = 1/72 inch), that defines the page surface — and a content stream whose drawing operations are positioned in that coordinate space. To add a gutter of, say, 12 mm (34 pt), the tool does two things to each page. First it enlarges the media box (and crop box, if present) by 34 pt in width. Then it translates the page's content: pdf-lib prepends a transformation to the content stream that shifts every drawing operation horizontally by the gutter amount when the binding edge is on the left, or leaves it at the original offset when the extra width is added on the right. Annotations — link rectangles, form field widgets — are moved by the same offset so they stay glued to the content they belong to.
Which side gets the space depends on the print mode. In double-sided mode the binding edge alternates: odd (front, recto) pages bind on their left, so content shifts right; even (back, verso) pages bind on their right, so content stays put while the width grows on the right — equivalently, content sits left. In single-sided mode every sheet binds on the left, so every page shifts right. This mirroring is exactly what word processors call "mirror margins", applied after the fact to a finished PDF.
The important design decision is that the page gets wider instead of the content getting smaller. The obvious alternative — scaling each page's content down and pushing it toward the outer edge — touches every coordinate: 10-point body text becomes 9.4-point, hairline rules get thinner, and if anything is later rasterized the effective resolution drops. A pure translation changes none of that. Text keeps its exact size and remains selectable, vector line weights are untouched, images keep every pixel, and the file grows by only a few bytes per page (the added transform). The trade-off is honest and visible: an A4 page becomes 222 × 297 mm. Printer drivers handle this either by printing at 100% onto larger stock or by a uniform ~5% shrink to fit A4 — still better than a lopsided scale, because the shrink is uniform and the gutter proportion is preserved.
Worked example: a 140-page thesis headed for spiral binding
A 140-page A4 thesis (4.8 MB) had uniform 20 mm margins. The copy shop's wire spiral consumes about 13 mm of the bound edge, which would have left only 7 mm between the coil and the text — visually cramped, and page numbers near the inner edge would sit against the wire.
Settings used here: gutter 15 mm, double-sided mode. Processing the 140 pages took about 4 seconds and the output stayed at 4.8 MB — the only additions were one short transform per page and updated page boxes. Odd pages came out with content shifted 15 mm right (inner margin now 35 mm, outer still 20 mm); even pages mirrored that. Page width rose from 210 mm to 225 mm. The shop printed the file at 100% on its 225 mm-capable production printer and trimmed nothing; on a plain A4 office printer, "fit to page" would instead have scaled everything by 93%, and 11-point body text would still have read comfortably at an effective 10.2 pt. After binding, the visible inner margin measured 22 mm from coil to text — the same breathing room as the outer edge.
Frequently asked questions
How do I add a binding margin to a PDF without shrinking the content?
Widen the page instead of scaling the content: this tool grows each page by the gutter amount and translates the existing content away from the binding edge, so text keeps its exact size and sharpness. Load the PDF, choose a gutter width such as 12 mm and single- or double-sided mode, and download the result. The alternative, scaling pages down inside a printer driver, makes everything smaller.
How wide should a gutter margin be for hole punching or spiral binding?
Standard two- and four-hole punches place hole centers about 12 mm from the paper edge, so a gutter of 12 to 15 mm on top of the document's existing margin is a safe floor. Plastic comb and wire spiral bindings typically consume 10 to 13 mm. If the original margins are already generous, a smaller gutter works; measure the narrowest existing margin first.
Why does the binding margin alternate between left and right pages?
In double-sided printing the binding edge is the left side of odd (front, recto) pages but the right side of even (back, verso) pages, because the sheet is flipped. The gutter therefore must switch sides on every page: content shifts right on odd pages and left on even pages. For single-sided printing every sheet binds on the left, so the shift is always to the right.
Does adding a gutter change the paper size when I print?
The page boxes get wider by the gutter amount, so an A4 page with a 12 mm gutter becomes 222 by 297 mm. Print it on A4 with the driver set to shrink to printable area and the whole page scales down by about 5 percent uniformly, or print on the larger page size if your printer supports it. Either way the content region near the binding stays clear.
Is adding a binding margin better than just scaling the PDF smaller?
For readability, yes. Scaling shrinks every line of text and turns 10-point type into roughly 9-point at a typical gutter width, and it moves content on both edges instead of only the binding side. Widening the page moves content without resampling or resizing anything, so type size, line thickness, and image resolution are exactly what they were.
Will links, bookmarks, and form fields still work after adding the gutter?
Bookmarks and page-level navigation are unaffected because no pages are added or removed. Annotation rectangles such as link areas and form fields are shifted by the same offset as the page content, so they stay aligned with what you see. Text remains selectable since nothing is rasterized.