Headers, Footers & Page Numbers
Configure running headers and footers, multi-column margin layouts, dynamic "Page X of Y" numbering, and per-section visibility rules in ComposeIt.
Professional reports, legal filings, and financial statements require consistent running headers and footers across pages. ComposeIt provides a dedicated header/footer engine that operates directly within page margin boundaries, supporting multi-column layouts, dynamic data variables, and page numbering tokens.
Anatomy of Running Headers and Footers
In ComposeIt, running headers and footers reside inside the page margin box at the top and bottom of each page:
The Margin Box Model
- Top Margin: Defines the vertical height allocated to the running header. If your header is 15 mm high, your section's Top Margin should be configured to at least 20 mm to prevent overlap with the document body content.
- Bottom Margin: Defines the vertical height allocated to the running footer. Ensure sufficient bottom margin padding for page numbers, legal disclaimers, and barcodes.
Multi-Column Header Layouts
Headers and footers can be organized into flexible columns (Left, Center, Right):
Running Header
├── Left Column: [Company Logo] or [Document Title]
├── Center Column: [Confidentiality Notice / Category]
└── Right Column: [Dynamic Date] or [Document Reference ID]To adjust the columns:
- Click Insert Column (Left / Right) to add additional cells.
- Drag column borders to adjust proportional width splits (e.g. 50% left, 25% center, 25% right).
- Set column alignment: (Left), (Center), or (Right).
Dynamic Page Numbers ("Page X of Y")
Dynamic page numbering is handled via the dedicated Page Number component.
Inserting Page Numbers
- Insert the Page Number component from the Blocks panel into any header or footer column.
- In the Traits Inspector, choose the Number Type:
- Current Page (
current): Outputs the 1-based page index of the active page. - Total Pages (
total): Outputs the total page count of the compiled document (or section).
- Current Page (
Composing "Page X of Y" Labels
To create a standard corporate page indicator:
- Insert a text container or paragraph block in your footer column.
- Enter your label prefix:
Page. - Insert a Page Number component with
numberType: "current"by typing @current. - Add separator text:
of. - Insert a second Page Number component with
numberType: "total"by typing @total.
Automatic Two-Pass Rendering
ComposeIt resolves page numbers during a two-pass rendering pipeline. Even if dynamic collections expand your report from 3 pages to 14 pages based on live data, the total page count evaluates correctly on every page.
Binding Dynamic Data in Headers & Footers
Running headers and footers can display dynamic data from your root payload, including client names, project codes, and issue dates:
Styling & Typography Best Practices
- Subtle Hierarchy: Keep header and footer text smaller than body text (typically
8pt-9.5pt) with muted colors (#64748Bor#94A3B8) so it doesn't distract from the primary content. - Dividers & Rules: Add a subtle
1px solid #E2E8F0bottom border to running headers and a top border to footers for crisp visual separation. - Safety Margins: Maintain at least
4mmof breathing room between the bottom of your header and the top of your body text.
Next Steps
- Explore variable paper formats and orientations: Variable Sections
- Embed mathematical formulas and charts: Charts, Formulas & LaTeX
- Learn dynamic collection iteration: Data Access & Collections
Variable Sections & Page Layouts
Configure multi-section documents with mixed paper formats, independent page margins, portrait and landscape orientations, and per-section header/footer visibility.
Generate PDF Invoices from Airtable with ComposeIt
Automatically generate professionally styled PDF invoices directly from your Airtable records using ComposeIt.