---
title: "Document layout"
description: "Page setup, the first-page letterhead, running headers and footers, and page breaks."
plan: Pro
docs: https://ui.edbn.me/docs/pdfs/document-layout
---

# Document layout

Page setup, the first-page letterhead, running headers and footers, and page breaks.

business-document wraps every template, setting the paper size, A4 or US Letter, the margins, the brand font with tabular figures, the language from the locale and the PDF’s title, author and date. details: false, as in the reports and the agreement, drops the issuer’s address from beside the logo or wordmark.

From page two a running header repeats the brand, title and number, and the footer carries the confidentiality line and page numbers, both marked as artifacts so screen readers skip them. document-title takes an optional kicker and subtitle.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/pdf-document-layout
```

## Dependencies
- edbn: pdf-shared

## Usage

The example code is part of Pro (https://ui.edbn.me/pricing). With the user's token, the edbn MCP server's `get_example` tool returns it: https://ui.edbn.me/mcp

## Files
- lib/pdf/components/document-layout.typ (3 lines)
- lib/pdf/templates/document-layout-example.typ (12 lines)
- lib/pdf/examples/components/document-layout.ts (18 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
