Skip to content

Shapes, images & groups

Pick Add rectangle or Add ellipse and drag on the canvas. Set the style in the context bar, before drawing or after selecting a shape:

Option Values
Fill Any color, with transparency. Cleared, the shape has no fill
Stroke color Any color, with transparency. Cleared, the shape has no border
Stroke width 0 to 20. On a rectangle, one width per side: top, right, bottom, left
Stroke style Solid, dashed, dotted
Corner radius Rectangles: one radius for all corners, or one per corner

The style you set while a drawing tool is active carries over to the next shapes you draw, which makes a series of identical boxes quick to draw.

Pick Add image box and draw the box the image will fill. Then click Choose image in the image bar. The picker has three tabs:

Tab Picks
Presentation An image already used somewhere in the template
Upload A file from your computer. PNG and JPEG are kept as they are; other formats are converted to PNG
Variable An image variable: a picture that changes with every PDF, such as a photo or a customer’s logo

You can also paste an image copied from anywhere, such as a screenshot or a picture from a web page, onto the canvas. It becomes a new image box.

Then adjust it in the image bar:

Option Effect
Crop Keep part of an uploaded image
Fit Fill stretches the image to the box; Contain shows all of it inside; Cover fills the box and crops what overflows
Alignment Where the image sits in its box with Contain or Cover: nine positions
Opacity 0 to 100 %
Radius Rounded corners. Half the box’s side turns a square box into a circle
Stroke A border: color, width, style

An uploaded image is static: the same picture in every PDF, such as a logo or a letterhead. An image box bound to a variable draws whatever image each export sends, and shows the variable’s default in the meantime. See the photo recipe.

A group holds other shapes, including other groups, and moves them as one. Templates that have to cope with changing data are mostly built from groups:

  • a group can lay out its children in a row, a column or a stack, so they keep their spacing whatever the data (see Group layouts);
  • a group can repeat once per item of a list (see Lists and tables);
  • a group can be shown on a condition, with everything inside it;
  • a group paints its own fill, border and rounded corners, so a card is just a group with a fill and some padding.
  1. Pick Add group and draw the group. An empty group shows as a tinted frame in the editor, and draws nothing in the PDF until you give it a fill or a border.

  2. Fill it in one of three ways:

    • draw a new shape over the group, and it lands inside;
    • drag an existing shape onto the group. The group lights up, and the shape drops into it without moving on the page;
    • in the layers panel, drop the shape’s row onto the middle of the group’s row.
  3. To take a shape out, select it and click Remove from group in the floating toolbar, or drag it out of the group.

Inside a group, positions are relative to the group, so moving the group moves everything in it.

Shapes you place by hand stay where you put them, so a hidden block leaves a hole. A group with a layout places its children itself at export time, the way CSS flexbox does: hidden shapes take no room, and sizes can follow the content. Choose it in Children layout, in the group bar. For a step-by-step example, see the layout recipe.

Free: each child keeps its own position
Row: left to right, gap apart
Column: top to bottom, as in a list
Stack: on top of each other, aligned together
  • Free is the default: children stay where you placed them, relative to the group. It’s fine for decoration, such as a badge over a photo or a watermark.
  • Row places children left to right.
  • Column stacks children top to bottom: a list, the contents of a card, the blocks of a page.
  • Stack places every child over the others: a text centered on a colored band, a badge in the corner of a photo.

Children follow the order of the layers panel. To reorder a row or a column, restack the children with Bring forward / Send backward, or drag their rows in the layers panel.

The alignment grid shows where the children sit, as they would on the page. In a row, the column of the grid places them horizontally and its row places them vertically. Distribution spreads them along the axis: Packed keeps them together at the start, the center or the end, Space between pins the first and last against the edges, and Space around shares the room around each of them.

Packed, middle left
Packed, bottom right
Space between
Space around

Gap sets the space between children, and Padding the space inside the group’s edges.

Stretch sizes the children across the axis. In a row, every child takes the row’s height, and in a column, every child takes its width.

Row, aligned top
Row, stretched

Hug sizes the group to its children, gaps and padding along its axis: a row’s width, a column’s height. A hugging column grows when a copy is added and closes up over a hidden child. Turn it on once the group has children: an empty hugging group shrinks to its padding and leaves no room to draw in.

Column with Hug: 2 children
The same, with 4 children

Flex, on a child of a row or a column, gives it a share of the room the fixed children leave along the axis. A child at 1 takes all of it, and two children at 1 and 2 split it in thirds. An empty group with Flex 1 works as a spacer. In a label: value row, give the label a fixed width and the value Flex 1, and the values of consecutive rows line up.

Flex 1
Fixed · Flex 1 · fixed: the flex box takes the free room
1
2
Flex 1 · Flex 2

Select a group to show its bar. From left to right:

Control What it sets
Repeat One copy per item of a list (see Lists and tables)
Children layout Free, row, column or stack
Children alignment The 3 × 3 grid: where the children sit in the group
Children distribution Packed, space between, space around
Stretch Children fill the group across its axis
Gap Space between children
Padding Space inside the group’s edges, per side
Hug The group’s size follows its children along its axis
Fill, Stroke, Corner radius The group’s own box: a background under its children, a border over them (one width per side), rounded corners (one per corner)
Flex The group’s share of its parent’s free room (in a row or a column)
Show The group’s condition

The layout options appear once you choose a layout other than Free.

Every shape (text box, rectangle, image, group) ends its context bar with Show, its condition: Always, or only when a boolean variable is true (or false). A shape hidden by its condition is left out of the PDF, and takes no room in a layout. In the editor it stays visible, faded when the variables’ default values would hide it. See Photo, text and a condition.