---
title: "Account statement"
description: "Opening and closing balances with every charge, payment, and credit."
plan: Pro
docs: https://ui.edbn.me/docs/pdfs/account-statement
---

# Account statement

Opening and closing balances with every charge, payment, and credit.

The supplied balances, such as opening, invoiced, payments and closing, lead the page in one row, and the last takes the brand accent so it’s read before the activity behind it. The period and statement date sit beside the account holder.

The activity table takes any headers; with five columns it gets fixed widths for date, description, reference, amount and running balance, and right-aligns the last two. Its header repeats on each new page.

## 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-account-statement
```

## 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/templates/account-statement.typ (23 lines)
- lib/pdf/examples/account-statement.ts (108 lines)
- lib/pdf/examples/account-statement.json (70 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
