Revision comparison table template

An A4 landscape comparison table showing amended text, current text and notes side by side. Changes are underlined in red, chapter rows span the two text columns, and long articles wrap across pages.

  • A4 landscape
  • 8 merge fields
  • Issued as PDF
  • Company names, people, addresses and amounts in the sample are fictional.
  • The sample layout is in Japanese. You can change any text in the template editor.
Sample of the revision comparison table template (first page of a PDF issued with DocRelay)

Use cases

  • Explaining revisions to company rules
  • Presenting changes to contracts or terms of service
  • Materials for board or labor-management meetings

Merge fields

The data fields you send to the API. Fields inside an array are shown as array.field.

FieldDescription
titleDocument title
revisionRevision note (effective date, etc.)
rowsRows (array; use _span: 2 for chapter rows)
rows.newAmended text (plain)
rows.new_sAmended text as segments (underline and color for changes)
rows.oldCurrent text (plain)
rows.old_sCurrent text as segments
rows.noteNotes

How to use it

  1. In the dashboard, choose Create template, select "Start from a template" and pick "Revision comparison table". The layout and sample data are copied into your project.
  2. Edit the company name, logo and field positions in the template editor to match your own format.
  3. Send the template name and data to POST /v1/renders to issue a PDF.

With a test API key (sk_test_) you can issue documents from the draft. Publish a version before issuing with a production API key. From an AI assistant, specify the same template in the from of the MCP create_template tool.

Create and issue via the API

Create a template by setting from to the template ID (comparison) in POST /v1/templates, then send the template name and data to POST /v1/renders.

1. Create a template from the ready-made one
curl https://api.docrelay.jp/v1/templates \
  -H "Authorization: Bearer $DOCRELAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Revision comparison table", "from": "comparison" }'
2. Send data and issue a PDF
curl https://api.docrelay.jp/v1/renders \
  -H "Authorization: Bearer $DOCRELAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d @comparison.json \
  -o comparison.pdf
comparison.json (sample data; arrays show the first item and long text is shortened)
{
  "template": "Revision comparison table",
  "format": "pdf",
  "data": {
    "title": "情報セキュリティ管理規程",
    "revision": "2026 年 10 月 1 日施行",
    "rows": [
      {
        "_span": 2,
        "_align": "center",
        "_bold": false,
        "new": "第1章 総則",
        "note": ""
      }
    ]
  }
}

API reference

Early access is open

We are preparing for launch. Pre-register and we will notify you when the service becomes available.