Jetformat
Word to PDF

Word to PDF from the command line

One command turns a DOCX into a PDF on the machine that owns the file. Fonts come from the system or a directory you pass. No Microsoft Office, no LibreOffice.

Processed on our server and deleted after 1 hour. Not used for training, not viewed by people.

Prefer the command line?

macOS · Linux
brew install jetformat/tap/jetformat
Terminal
jetformat word to-pdf contract.docx -o contract.pdf
jetformat word to-pdf contract.docx --font-dir ./fonts --force
-o, --output
Output path. Defaults to the input name with .pdf next to the source.
--font-dir
Extra font directory. Repeatable. Use it when the document names fonts the machine does not have.
--force
Overwrite an existing output file.

Works

  • .docx files
  • Headers, footers, page numbers, sections
  • Tables, lists, numbering, styles
  • Embedded images and shapes
  • CJK and Latin text with the right fonts installed

Does not

  • Legacy .doc and macro-enabled .docm
  • OCR of scanned pages
  • Creating a document from nothing (use a template)
  • Fonts that are not on the machine and not in --font-dir

Read and edit the source file

Read free · writes use credits

inspect

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

Terminal
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.

Terminal
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.

Terminal
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.

Terminal
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, run word to-pdf, then pdf extract.

Terminal
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.

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

Questions

Why does my PDF use a different font?

The document names a font that is not installed. Put the font files in a folder and pass --font-dir. Jetformat never downloads fonts.

Does it run on a Linux server without a display?

Yes. The engine is pure Go. No X server, no office suite, no Java.

What does it cost?

1 credit per output page. A 12-page contract is 12 credits, or $0.12 at the $10 / 1,000-credit pack rate. Plan and larger-pack rates differ. The first 80 pages each month are free.

Is the online converter free?

Without an account you get 2 runs a day, up to 10 MB and 10 pages each. Sign in for 80 free pages every month and files up to 50 MB; after that it is 1 credit per page, shared with the CLI.

What happens to the file I upload?

It is processed on our server and deleted as soon as the job finishes. The result is deleted 1 hour after the upload, or when you press Delete now. Files are not used for training and not viewed by people.

Online or command line?

Online is quickest for a file now and then. The CLI keeps the file on your machine, handles folders of files, and runs from scripts and coding agents.

Convert one real file today.

Install the CLI and inspect a document with free reads. Office edits use one credit per command; PDF writes use page-based credits. Every account gets 80 free credits a month, with plans and packs for more.

macOS · Linux
brew install jetformat/tap/jetformat