All articles

Page & layout

Control where pages break

Weft breaks pages on its own, filling each page and moving on. When a break lands badly — a heading left alone at the foot of a page, a signature block cut in half, terms that should begin on a fresh sheet — the settings here say where a break must fall and where it should not.

A forced break always starts a new page. A keep setting asks Weft to avoid a break at that point — a request, which Weft follows when the content allows.

Before you start

  • In the hosted app, changing a template needs the editor role or higher. Local mode has a single user and no roles.
  • Breaks exist only in the Paged view and the PDF; the Flow view is one continuous page. Make changes in Flow — in Paged the outline and the properties panel are dimmed and do not respond to clicks — then check them in Paged.

Force a new page

With a Page break element

  1. Select the block the new page should come after.
  2. Open the Add block menu — the + under the selected block, or Add block at the top of the outline — and under Content choose Page break.

Everything after it starts at the top of the next page. A page break is not drawn in the Flow view, so find, move or delete it in the outline, where it is listed as Page break. Its Show only when a condition is met setting breaks the page only for records that meet the condition (see Show only when). Inside a Repeat it breaks once for every item; inside a column of Columns or a cell of a Grid it has no effect.

On a section or a table

To start a whole group on a fresh page, set it on the group, so it travels when you move it:

  • A Section: tick Start on a new page — break before this section, near the bottom of its properties. The section's title moves with it.
  • A Table: in its Source panel, tick Start on a new page (break before this table).

The running header and footer still print on that page.

Keep things together

These checkboxes sit near the bottom of a block's properties:

  • Keep with next block — stay with what follows — avoids a break straight after the block, so a heading is not stranded at the foot of a page. Offered on headings, paragraphs, images, barcodes, tables, dividers, sections, columns and grids.
  • Keep together — don’t split across pages — if the group does not fit in the rest of the page, it moves to the next page whole. Offered on sections, columns and grids.
  • Keep each item together — an item never splits across pages — on a Repeat: each item moves to the next page as a unit, though items still break between one another.

To keep a heading, its paragraph and a table on one page, group them into a section: click the first block's outline row, ⌘-click (Ctrl-click on Windows) the others, and press Group 3 blocks in the properties panel (the number follows your selection). The new section is selected; tick its Keep together — don’t split across pages.

A forced break wins over a keep. A page break inside a section set to Keep together still starts a new page there, and Keep with next block on the block just before a page break does not carry that block over. To start a page with a heading, put the page break before the heading.

Tables across pages

Long tables need no settings:

  • A row never splits across two pages.
  • The header row repeats at the top of every page the table continues onto, with the same column widths.
  • In a grouped table, a group's heading row stays with the group's first row.
  • The footer row prints once, after the last row.

When something is taller than a page

A group taller than a whole page cannot be kept together; it still splits where it must. When Weft estimates that a kept-together group is this tall, its properties show This group is taller than a page — it will still split where it must. and its outline row gets a warning badge (tooltip Keep-together group is taller than a page — it will still split). The estimate is rough; trust the Paged view. To fix it, untick the setting, split the group into smaller sections, or choose a larger page (see Set up the page).

Content that cannot be split at all and does not fit on a page is different: the part that does not fit is dropped from the PDF. Once you have opened the Paged view, the check behind Preview PDF reports this as A page overflowed when you last paginated (or Pages overflowed when you last paginated). Open it with the arrow beside Preview PDF (tooltip Preflight & PDF options) — see Check before export.

Check the result

  1. Click Paged in the bar directly above your document. Weft lays out real pages and the bar shows how many there are.
  2. To change something, click Flow, make the change, then click Paged again; the pages are laid out afresh each time. ⟳ Refresh (tooltip Rebuild the page preview) does the same without leaving the Paged view.
  3. For the final check, press Preview PDF. It renders the document the way the finished PDF is produced and opens it in a new tab.

Breaks depend on the data. If your sample data has more than one shape — three line items and sixty, say — check each under Preview shape in the data pill above your document (see Preview your document).

Good to know

  • A page break at the very start of the document, or two page breaks in a row, leaves a blank page. A page break as the last block adds no empty page.
  • List, Page break and Conditional blocks have no keep checkboxes, and a Repeat has no Keep with next block. Set them on the blocks around or inside instead.

What next