PDF Template Config

The PDF Template Config object controls how PDFs are generated for a company's invoices, proforma invoices, credit notes, and delivery notes. Each company has a single configuration that applies to all document types.

Object

{
  "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "templateSlug": "classic",
  "primaryColor": "#2563eb",
  "fontFamily": "DejaVu Sans",
  "showLogo": true,
  "showBankInfo": true,
  "footerText": null,
  "customCss": null
}

Fields

FieldTypeDescription
idstringUnique identifier (UUID)
templateSlugstringActive template design. One of: classic, modern, minimal, bold
primaryColorstring|nullPrimary brand color in hex format (#RRGGBB). Falls back to template default if null.
fontFamilystring|nullCSS font family for the PDF. Default: DejaVu Sans
showLogobooleanWhether to display the company logo. Default: true
showBankInfobooleanWhether to display bank account information. Default: true
footerTextstring|nullCustom footer text displayed at the bottom of documents
customCssstring|nullCustom CSS styles injected into the PDF template

Available Templates

SlugNameDefault ColorDescription
classicClasic#2563ebTraditional design with clean lines and professional colors
modernModern#6366f1Modern design with rounded corners and colored header
minimalMinimal#374151Minimalist design with thin lines and compact layout
boldBold#dc2626Bold design with color bar and large totals

Document Language

PDFs support multi-language generation. The language is set per-document (not per-template) via the language field on invoices and proforma invoices. Supported languages:

CodeLanguage
roRomanian (default)
enEnglish
deGerman
frFrench