CLI resource

pdf

info, merge, split, fill, encrypt, annotate, attach, and render. One resource, many verbs.

The agent runs this

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

CLI
jetformat pdf info report.pdf --json
jetformat pdf merge a.pdf b.pdf -o book.pdf --force
jetformat pdf render book.pdf --pages 1,last --width 1600

Ask: Merge these two PDFs, redact the word secret, and render the first and last pages.

Works

  • info, merge, extract, split, insert, render
  • fill / flatten / add-text-field
  • encrypt, redact, sign
  • annotate, stamp, attach, pin

Does not

  • extract is contiguous; split is one file per page
  • No OCR or scanned-page text
  • Password-protected PDFs need pdf decrypt first
  • pdfua is mechanical metadata, not a tag tree
  • tables are heuristic

CLI surface

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

info / merge / extract / split

extract is a contiguous range into one file. split writes one file per page. insert appends every page of another PDF.

CLI
jetformat pdf info book.pdf --json
jetformat pdf merge a.pdf b.pdf -o book.pdf --force
jetformat pdf extract book.pdf --pages 2-5 -o chapter.pdf --force
jetformat pdf split book.pdf -o book-parts --force
jetformat pdf insert book.pdf --file chapter.pdf -o book.pdf --force
jetformat pdf remove-page book.pdf --page 2 -o book.pdf --force

render / optimize / rotate / flip

Render selected pages to PNG or JPEG. rotate is multiples of 90. flip is a mirror, not a rotation.

CLI
jetformat pdf render book.pdf --pages 1,3-5,last --width 1600
jetformat pdf optimize book.pdf -o small.pdf --force
jetformat pdf sanitize book.pdf -o clean.pdf --force
jetformat pdf rotate book.pdf --degrees 90 -o rotated.pdf --force
jetformat pdf flip book.pdf --horizontal -o flipped.pdf --force
jetformat pdf grayscale book.pdf -o gray.pdf --force
jetformat pdf crop book.pdf --llx 0 --lly 0 --urx 400 --ury 500 -o crop.pdf --force

encrypt / decrypt / redact / sign

Password-protected inputs are otherwise out of scope except decrypt. sign needs a PEM cert and RSA key. timestamp needs a reachable TSA.

CLI
jetformat pdf encrypt book.pdf --user secret -o locked.pdf --force
jetformat pdf decrypt locked.pdf --password secret -o unlocked.pdf --force
jetformat pdf redact book.pdf --term "secret" -o redacted.pdf --force
jetformat pdf sign book.pdf --cert cert.pem --key key.pem -o signed.pdf --force

fields / fill / flatten

fill uses JSON field names. add-text-field creates a new field. flatten bakes filled values into the page.

CLI
jetformat pdf fields form.pdf
jetformat pdf fill form.pdf --json fields.json -o filled.pdf --force
jetformat pdf add-text-field book.pdf --name Title --page 1 -o form.pdf --force
jetformat pdf flatten form.pdf -o flat.pdf --force

annotate / highlight / stamp

annotate is a rectangle. highlight is a yellow box, not a text search. ink is a point path.

CLI
jetformat pdf annotate book.pdf --page 1 --x 72 --y 72 --width 120 --height 40 -o ann.pdf --force
jetformat pdf circle book.pdf --page 1 --x 72 --y 72 --width 80 --height 80 -o circle.pdf --force
jetformat pdf line book.pdf --page 1 --x1 72 --y1 72 --x2 200 --y2 120 -o line.pdf --force
jetformat pdf highlight book.pdf --page 1 --x 72 --y 72 --width 120 --height 16 -o hl.pdf --force
jetformat pdf ink book.pdf --page 1 --points 10,10,80,40,120,20 -o ink.pdf --force
jetformat pdf stamp book.pdf --text DRAFT --page 1 -o stamped.pdf --force

attach / pin / meta / pdfua

attach embeds in the catalog. pin is a page paperclip. pdfua writes mechanical metadata and does not synthesize a tag tree. tables are heuristic.

CLI
jetformat pdf attach book.pdf --file notes.txt -o attached.pdf --force
jetformat pdf pin book.pdf --file notes.txt --page 1 -o pinned.pdf --force
jetformat pdf meta book.pdf --title Report --author Jetformat -o meta.pdf --force
jetformat pdf outlines book.pdf
jetformat pdf tables book.pdf
jetformat pdf fonts book.pdf
jetformat pdf pdfa book.pdf --profile 1b -o a.pdf --force
jetformat pdf pdfua book.pdf -o ua.pdf --force

to-docx

Rebuild an editable DOCX from a PDF text layer: paragraphs, anchored images, simple tables. Not OCR. Not pixel-perfect. Not PDF to Excel or PPT.

CLI
jetformat pdf to-docx report.pdf -o report.docx --force

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.