Templates

Number Formats

PDF CreateMate supports a limited set of numeric formatters. Formatting is applied via placeholder modifiers. A locale picker appears in the builder, but locale-based formatting currently applies only to currency and percent.

Available Numeric Formatters

Currency

Formats using the selected currency code (defaults to EUR) and your app locale.

  • Input: 1234.5 with currency:USD (locale en) → Output: $1,234.50

Percent

Displays decimal values as percentages.

  • Input: 0.25 → Output: 25%

Ordinal

Adds ordinal suffixes based on locale (fallback to English).

  • Input: 3 → Output: 3rd

Phone

Attempts international phone formatting using your app locale; falls back to basic cleanup.

  • Input: 5551234567 → Output: (555) 123-4567

Adding Currency Symbols

To add currency or other symbols, type them manually before or after the HubSpot property placeholder. For example, to display revenue with the € symbol, enter {{revenue}}€ in your template.

Examples

Template Placeholder Property Value Output
{{ amount | currency:'EUR' }} 1500 €1,500.00 (locale-dependent)
{{ amount | percent }} 0.25 25%
{{ rank | ordinal }} 3 3rd
{{ phone | phone }} +14155551212 +1 415-555-1212 (locale-dependent)

Decimal Places

Decimal rounding controls are not applied during generation. To round, use currency formatting (which applies standard monetary precision) or format the value in HubSpot before it reaches PDF CreateMate.

Configuring Number Formats

  1. Add a formatter to the placeholder in your template, for example:
    • {{amount | currency:USD}}
    • {{discount | percent}}
    • {{rank | ordinal}}
  2. Save your template and generate a test document to verify the output.
Number Format Configuration - The property settings showing format dropdown
Image description
The builder shows number formatter options and a locale picker.
Available formatters include None, Currency, Ordinal (1st), Percent, Phone, and Decimals.
A locale dropdown allows selecting regional number formats (e.g., Germany, United States, United Kingdom),
which control the thousands separator and decimal symbol used in formatting.
The "Number Format (locale)" picker is available in the builder UI, but locale-based reformatting is only applied for `currency` and `percent` formatters. Plain numbers are not reformatted by locale during generation.