Skip to content

Account statement

A bank-style statement: the period’s transactions between an opening and a closing balance. It is PDF 2.0, meeting PDF/A-4f and PDF/UA-2 together, and carries the transactions as a CSV attachment for people who want the data, not the page.

Standards: PDF/A-4f · PDF/UA-2, checked with veraPDF on every change. Download the PDF.

Page 1 of the account statement, rendered by Tagua.

The same report as an Excel workbook (download it), from tagua render statement.report.yaml --out statement.xlsx; see Excel export.

ABCD
1Statement September 2026
2Contoso Ltd · IE29AIBK93115212345678
3DateDescriptionAmountBalance
4Opening balance€12,480.00
502/09/2026Invoice INV-0042, Contoso Ltd-€246.37€12,233.63
609/09/2026Transfer from savings€2,000.00€14,233.63
715/09/2026Card payment — Café Olé, Galway-€18.40€14,215.23
821/09/2026Standing order: rent-€1,450.00€12,765.23
928/09/2026Salary, Acme Ltd€3,870.55€16,635.78
10Closing balance€16,635.78
11The transactions are attached to this PDF as transactions.csv.
12Questions? See https://acme.example/help
13Amounts include VAT where it applies.
Statement September 2026
  • PDF/A-4f and PDF/UA-2 (PDF 2.0)
  • An attachment built from a parameter
  • Table footer rows with row headers (the balances)
  • Page footers with “page n of m”
statement.report.yaml
# yaml-language-server: $schema=../schema/template.schema.json
# An account statement as PDF 2.0: PDF/A-4f, with the transactions attached as CSV, and PDF/UA-2.
version: 1
title: "Statement {Period}"
culture: en-IE
document:
author: Acme Ltd
compliance: [pdf-a-4f, pdf-ua-2]
attachments:
- name: transactions.csv
source: "{Csv}"
mimeType: text/csv
relationship: data
description: The statement's transactions as comma-separated values
page:
size: A4
margins: 22mm
fonts:
Inter: { regular: fonts/Inter-Regular.ttf, bold: fonts/Inter-Bold.ttf }
styles:
default: { font: Inter, fontSize: 10pt, lineHeight: 1.4, color: "#1F1F1F" }
muted: { color: "#6B6B6B" }
th: { fontWeight: bold, borderBottom: "0.75pt solid #1F1F1F", padding: 0 0 3pt 0 }
total: { fontWeight: bold, borderTop: "0.75pt solid #1F1F1F", padding: 3pt 0 0 0 }
parameters:
Csv: { type: string, label: The transactions as CSV }
data:
account:
fields: { Holder: string, Iban: string, Period: string, Opening: decimal }
transactions:
fields: { Date: date, Description: string, Amount: decimal }
body:
dataset: account
detail:
- content:
- { type: text, value: "Statement {Period}", fontSize: 20pt, fontWeight: bold, tag: h1 }
- { type: text, value: "{Holder} · {Iban}", style: muted }
- padding: 18pt 0 0 0
content:
- type: table
dataset: transactions
headerStyle: th
columns:
- { header: Date, value: "{Date:d}", width: 70pt }
- { header: Description, value: "{Description}", width: 1fr }
- header: Amount
value: "{Amount:C}"
width: 80pt
align: right
when: [ { if: =Amount < 0, color: "#B3261E" } ] # debits in red
- { header: Balance, value: "{Opening + RunningSum(Amount):C}", width: 80pt, align: right }
before:
- cells:
- { value: Opening balance, span: 3, isHeader: true }
- { value: "{Opening:C}", align: right }
footer:
- style: total
cells:
- { value: Closing balance, span: 3, isHeader: true }
- { value: "{Opening + Sum(Amount):C}", align: right }
- padding: 18pt 0 0 0
gap: 6pt
content:
- { type: text, value: "The transactions are attached to this PDF as transactions.csv.", style: muted }
- { type: text, value: "Questions? See https://acme.example/help", link: "https://acme.example/help" }
- { type: text, value: "Amounts include VAT where it applies.", tag: note, style: muted, fontSize: 8.5pt }
pageFooter:
- content:
- { type: text, value: "Page {PageNumber} of {TotalPages}", align: right, style: muted, fontSize: 8pt }

Save the template, put the fonts it names next to it (Inter and the Noto fonts are free, under the SIL Open Font License), and run:

Terminal window
tagua render statement.report.yaml --open

Without a data file, tagua render makes up sample rows from the field types; see Preview as you edit.