Template Designer
Preview and Testing

Preview and testing

While you are designing, the canvas shows field names in the boxes you dragged them to. Preview mode replaces those names with sample values, so you can see what a donor will actually receive.

Preview mode

Click Preview in the page toolbar, or press P. Press it again to go back.

Preview mode is the only place a template's layout is measured. In the ordinary view, the canvas draws the positions you designed, which is what you want while you are dragging things around. Turn preview on and PatronSend measures the real text and moves anchored fields to where they will really print.

An anchored field cannot be dragged up or down while preview mode is on: its vertical position is being worked out rather than read from the page. Change its gap instead, in the Layout group or with the up and down arrow keys.

The three sample donors

Beside the Preview button is a sample donor selector. The three are chosen for the three ways a layout breaks, not to be realistic.

SampleWhat it is for
TypicalAn ordinary donor. What the receipt looks like on a normal day
MinimalThe shortest possible values: a two-letter first name, a one-line address, nothing optional filled in. This is where dead space shows up
LongestLong names, a business name, a tribute, a four-line overseas address. This is where content collides or runs off the page

Design against Typical, then check Minimal and Longest before you publish. Most layout problems only exist for one of them.

Your own message text is never replaced by a sample. A letter's message is your prose, and its length is yours to see honestly.

The status line

While preview mode is on, a strip under the toolbar says what it is doing.

MessageMeaning
Loading sample valuesFetching the sample donor. Nothing can be measured yet
Measuring textWorking out where the text really ends
Layout fell back to designed positionsReflow was abandoned, so the canvas is showing designed positions

That last one is not an error. It means the resolved layout would not have been a valid page, so PatronSend kept the layout you designed instead. See when reflow gives up.

Layout warnings

The problem with checking one sample donor at a time is that you have to remember to check the others. The amber warnings chip does it for you: it measures all three samples in the background and counts the distinct problems it finds.

Click the chip to list them. Each entry says which field, what went wrong, and which samples provoke it. Click one and the designer selects that field, switching page if it is on another one.

Warnings are advice, not a gate. The samples are values PatronSend invented, so they cannot predict what any real donor's record holds, and nothing here blocks you from saving or publishing. A warning means "check this", not "this is broken".

The test PDF

Preview mode measures the same fonts the generator uses, but only a real PDF proves it. Test PDF in the top toolbar generates one from the currently selected sample donor and downloads it.

⚠️

The test PDF is built from the saved template. If the toolbar says "Unsaved changes", click Save first, or you will be reading a PDF of the version before your last few edits.

Generate a test PDF for each of the three samples before publishing. It is the last check that costs nothing and the only one that renders exactly what a donor would get.