PDFPipe

North American sizes / Legal

US Legal page size for PDF generation

Legal is 8.5 by 14 inches: Letter width with three extra inches of height, used for contracts and court documents.

The dimensions

One measurement in four units. Millimetres and inches are what a printer works in; points are what the PDF itself stores; pixels are only useful for checking a screen mock-up against the real thing.

  • Millimetres: 215.9 x 355.6 mm
  • Inches: 8.5 x 14 in
  • Points: 612 x 1008 pt
  • CSS pixels: 816 x 1344 px at 96 dpi

Where the size comes from

Legal is Letter with the sheet run longer. The width matching Letter is the point: a Legal document shares margins, column widths and letterhead with the Letter stationery it sits next to in the same file, and only the run of the page differs. It survives because a longer page means fewer page breaks in a document where a break in the wrong place has consequences.

What gets printed at this size

  • contracts, leases and deeds where clauses should not split
  • court filings in jurisdictions that specify it
  • long-form tables that would otherwise break awkwardly on Letter

Margins that survive a real printer

1 inch left and right to match Letter stationery, 1 inch top, and 1.25 inches at the bottom to leave room for a signature block or an initialling line. Numbered-line pleading paper, where it is used, has its own strict rules and is set by the court rather than by you.

The CSS

Legal is one of the six named formats the render API accepts, so it can be set in the request options or in the document's own CSS. Setting it in CSS keeps the size with the template, which is usually what you want.

css
@page {
  size: Legal portrait;
  margin: 1in 1in 1.25in 1in;
}

/* The whole reason for Legal is fewer breaks in the wrong place. Say so
   explicitly rather than hoping the extra height is enough. */
.clause {
  break-inside: avoid;
}
.signature-block {
  break-inside: avoid;
}

The render request

With a named format the size travels in the options and the CSS is optional.

json
{
  "html": "<!doctype html>...",
  "options": {
    "format": "Legal",
    "margin": { "top": "18mm", "bottom": "18mm", "left": "16mm", "right": "16mm" }
  }
}

The mistake people make

Assuming a Legal document prints on any office printer. Many multifunction devices only hold Letter in the main tray and Legal in a bypass, so a document that renders perfectly arrives cropped or scaled to fit because the driver silently substituted the paper that was loaded.

Frequently asked

What is Legal in pixels?

816 x 1344 px at 96 dpi, at the 96 pixels to the inch that CSS assumes. That number is useful for comparing a screen mock-up against the page, and useless for laying out the document: use 215.9 x 355.6 mm instead, because a page laid out in pixels shifts whenever the render scale changes.

Can I pass Legal as a format?

Yes. "Legal" is one of the six format values the API accepts, alongside A4, A3, A5, Letter, Legal and Tabloid.

Does landscape need a different page size?

No. Landscape is the same rectangle turned, so it is set as an orientation rather than as swapped dimensions. Writing the width and height the other way round produces the same page and makes the intent harder to read later.

Other page sizes

Sizes that come up in the same conversation, and one from each of the other families.

Paste the CSS below into the playground and see the page box it produces.