CLI resource

word

Convert DOCX to PDF, inspect structure, fill templates, and edit an existing file. Legacy .doc files are not supported. Creating a blank document from scratch is not a CLI product yet.

The agent runs this

GPT Skills and DeepSeek Harness spawn the local CLI. The file stays on disk.

CLI
jetformat word to-pdf contract.docx -o contract.pdf

Ask: Convert contract.docx to PDF, then list its bookmarks and comments.

Works

  • .docx only
  • inspect, template, mail-merge, comments, headers, tables
  • merge files; split by section break

Does not

  • No .doc or .docm
  • Split is by section, not by page
  • No from-scratch New() CLI
  • Fonts on the machine still affect PDF layout

CLI surface

These commands already ship in the local binary. Creating a document from scratch is not a CLI product yet.

to-pdf

DOCX in, PDF out. convert still picks the engine from the extension.

CLI
jetformat convert contract.docx -o contract.pdf
jetformat word to-pdf contract.docx -o contract.pdf

inspect

Paragraphs, tables, images, headers, content controls, styles, bookmarks, and comments.

CLI
jetformat word inspect contract.docx --json
jetformat word tables contract.docx
jetformat word styles contract.docx
jetformat word bookmarks contract.docx

template / mail-merge / fill-fields

Content-control template, MERGEFIELD mail-merge, and legacy form fields are three different commands.

CLI
jetformat word template letter.docx --set customer="Acme Corp" -o letter.docx --force
jetformat word mail-merge letter.docx --set Customer="Acme Corp" -o letter.docx --force
jetformat word fill-fields letter.docx --set Name=Ada -o letter.docx --force

comment / footnote / header / toc

Add or list comments, footnotes, endnotes, headers, hyperlinks, numbering, and a table of contents field.

CLI
jetformat word comment letter.docx --author Alice --text "fix this" -o letter.docx --force
jetformat word footnote report.docx --paragraph 1 --text "see spec" -o report.docx --force
jetformat word header report.docx --text Confidential -o report.docx --force
jetformat word toc report.docx --levels 1-3 -o report.docx --force

watermark / style / add-table / add-image

Text or image watermark. Insert paragraphs, tables, and inline images into an existing DOCX — this is not creating a file from scratch.

CLI
jetformat word watermark letter.docx --text CONFIDENTIAL -o letter.docx --force
jetformat word style report.docx --paragraph 1 --id Heading1 -o report.docx --force
jetformat word add-table report.docx --row Alpha,Beta -o report.docx --force
jetformat word add-image report.docx --paragraph 1 --image logo.png -o report.docx --force

merge / split

Merge concatenates DOCX files. Split follows section breaks, not pages. For page ranges, convert to PDF first.

CLI
jetformat word merge chapter1.docx chapter2.docx -o book.docx --force
jetformat word split report.docx -o report-parts --force

extract-images

Embedded pictures only. Scanned pages are not OCR.

CLI
jetformat word extract-images report.docx -o report-images

Give the agent a real converter.

Install the CLI, then the GPT Skill or DeepSeek Harness plugin. The model runs jetformat. The PDF lands on disk.