Document Stack
Document Stack
Docs

Building a Contract Template

Create a multi-page contract template with numbered clauses, signature blocks, and dynamic party details.

Overview

Contracts are among the most complex documents to template. This guide covers multi-page layout, numbered sections, conditional clauses, and dual signature blocks.

Page Setup

  • Size: A4 or US Letter
  • Orientation: Portrait
  • Margins: 60px top, 50px sides, 80px bottom (for page numbers)
  • Multi-page: Enable multiple pages for long contracts

Title Page

  1. Company logo centered at the top
  2. Document title — "Service Agreement" in 24px bold
  3. Party fields:
    • partyA — First party name
    • partyB — Second party name
    • effectiveDate — Contract start date
    • contractNumber — Reference number

Contract Body

Structure the contract with numbered sections using text elements:

  • Section headings — Bold, 14px, numbered (1., 2., 3.…)
  • Body text — Regular, 11px, justified alignment
  • Sub-clauses — Indented, 11px (1.1, 1.2…)

Common Sections

SectionDynamic Fields
1. Definitions
2. Scope of ServicesserviceDescription
3. TermstartDate, endDate
4. Compensationamount, paymentTerms
5. Confidentiality
6. TerminationnoticePeriod
7. Governing Lawjurisdiction

Conditional Clauses

Use conditional content to include or exclude clauses like non-compete or IP assignment based on the contract type.

Signature Blocks

Place two signature blocks side by side at the end:

  • Signature line (horizontal rule)
  • partyASignerName / partyBSignerName
  • partyASignerTitle / partyBSignerTitle
  • signDate field for each party

Headers & Footers

Add repeating elements across all pages:

  • Header: Contract number and party names
  • Footer: Page number and confidentiality notice

Sample API Data

Generate Request Data
{
  "templateId": "tmpl_contract",
  "data": {
    "contractNumber": "SA-2025-0127",
    "partyA": "Acme Corporation",
    "partyB": "Widget Labs Inc.",
    "effectiveDate": "February 1, 2025",
    "serviceDescription": "Software development and consulting services",
    "startDate": "February 1, 2025",
    "endDate": "January 31, 2026",
    "amount": "$150,000",
    "paymentTerms": "Net 30",
    "noticePeriod": "30 days",
    "jurisdiction": "State of California",
    "partyASignerName": "John Smith",
    "partyASignerTitle": "CEO",
    "partyBSignerName": "Jane Doe",
    "partyBSignerTitle": "CTO"
  }
}

Next Steps