Fields
Configure text fields in your PDF templates
Text fields are the building blocks of templates. They define where data appears in your generated PDFs.
Adding Fields
- Open your template in the editor
- Click Add Text Field
- Draw a rectangle where the data should appear
- Name the field in the properties panel
Field Properties
| Property | Description |
|---|---|
| Name | Identifier used when mapping data (e.g., customer_name) |
| Page | Which PDF page the field appears on |
| Position | X/Y coordinates from the bottom-left corner |
| Size | Width and height of the field area |
| Font Size | Text size in points |
| Font | Font family (default uses PDF standard fonts) |
| Alignment | Left, center, or right |
| Color | Text color (hex code) |
Positioning Fields
Using the Visual Editor
- Drag to move a field
- Resize handles to adjust dimensions
- Arrow keys for fine positioning (1px increments)
- Shift + Arrow for larger increments (10px)
Precise Positioning
For exact placement:
- Select the field
- Enter coordinates in the properties panel
- Coordinates are in points from the bottom-left
PDF coordinates start from the bottom-left corner (0,0), with Y increasing upward. This differs from typical screen coordinates.
Field Naming
Good names make workflow configuration easy:
customer_name
invoice_number
shipping_address
order_total
due_dateBad names cause confusion:
field1
text
a
new_field_2Naming Rules
- Use
snake_caseorcamelCaseconsistently - No spaces (use underscores)
- Alphanumeric characters only
- Must be unique within the template
Multi-line Fields
For addresses or descriptions:
- Make the field tall enough for multiple lines
- Enable Multi-line in properties
- Set Line Height for proper spacing
Text wraps automatically within the field bounds.
Formatting
Font Options
Templates support standard PDF fonts:
- Helvetica (default)
- Times Roman
- Courier
For custom fonts, contact support about embedding options.
Text Styling
| Style | How to Apply |
|---|---|
| Bold | Enable in properties (Helvetica-Bold) |
| Italic | Enable in properties (Helvetica-Oblique) |
| Size | Set font size in points |
| Color | Enter hex code (#000000 for black) |
Number Formatting
Field values are inserted as-is. Format numbers in your workflow before passing to the template:
{{formatNumber(steps.extract.total, "currency")}}Overlapping Fields
Fields can overlap if needed:
- Fields render in order of creation (first = bottom)
- Use layering for watermarks or backgrounds
- Be careful with text overlap—it can be hard to read
Field Visibility
All fields render when the template is filled. For conditional content:
- Create multiple template versions
- Use workflow logic to select the right template
- Or fill optional fields with empty strings
Templates don't support conditional visibility. The workflow decides which template to use, not which fields to show.