Jetformat

word

Convert, inspect, and edit existing DOCX files. Only to-pdf uses credits.

to-pdf (1 credit per output page)

jetformat word to-pdf contract.docx -o contract.pdf
jetformat word to-pdf contract.docx --font-dir ./fonts --force

-o sets the output path, --font-dir adds a font directory (repeatable), --force overwrites. jetformat convert contract.docx is the same thing.

inspect, tables, styles, bookmarks, comments (free)

jetformat word inspect contract.docx --json
jetformat word tables contract.docx
jetformat word styles contract.docx
jetformat word bookmarks contract.docx
jetformat word comments contract.docx
jetformat word headers contract.docx
jetformat word footnotes contract.docx
jetformat word form-fields contract.docx

template, mail-merge, fill-fields (free)

Three different mechanisms: content controls, MERGEFIELD codes, legacy form fields.

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

Edit in place (free)

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
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-paragraph report.docx --text "next line" -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
jetformat word hyperlink report.docx --url https://jetformat.com --paragraph 1 -o report.docx --force
jetformat word numbering report.docx --paragraph 1 --style bullet -o report.docx --force
jetformat word props report.docx --title Report --author Ada -o report.docx --force
jetformat word remove-paragraph report.docx --paragraph 2 -o report.docx --force

These insert into an existing DOCX. There is no command that creates a document from nothing.

merge, split, extract-images (free)

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

Merge concatenates files. Split follows section breaks, not pages; for page ranges run word to-pdf then pdf extract. Extract-images writes embedded pictures only.

Limits

No .doc or .docm. No OCR. Fonts must be on the machine or in --font-dir.

Last updated