For the complete documentation index, see llms.txt. This page is also available as Markdown.
PDF/UAOfficeFormsPDF/A

Conditional Content for Document Generation Showcase Demo Code Sample

Requirements

These packages are required to use these features in production. Trial keys have unlimited access to all features

Web SDKPackage: TemplateLive demo

Generate documents using conditionals denoted by {{if cond}} and {{endif}} clauses. Conditionals can be helpful when content in the document should only be included in certain cases.

This demo allows you to:

  • Generate a PDF with conditional clauses

  • Customize contents

  • Download updated PDF

Implementation steps

To add document generation capability using conditional clauses with WebViewer:

Step 1: Choose your preferred web stack Step 2: Add the ES6 JavaScript sample code provided in this guide

Once you generate your license key, it will automatically be included in your sample code below.

spinner