Core concepts

Conditional document content

Display template sections from explicit application-supplied states.

Reviewed 2026-08-05 · PDFDesignAPI Engineering

Presentation, not business rules

The application determines states such as paid, overdue, approved, or optional. A template condition determines whether the corresponding visual section appears.

Do not reproduce authorization, pricing, or legal decision logic in the template.

Test all branches

Create fixtures for true, false, missing optional data, and combinations of adjacent conditions.

Validate each fixture and inspect the rendered result before promoting the template.

Was this page helpful?

Need help with an implementation detail?

Contact technical support →