Back to projects
active v0.1.0

DocxToPDF

Batch-convert DOCX to PDF using Word itself as the engine.

A keyboard-driven macOS tool that Spotlight-searches your whole Mac for DOCX files, lets you tick the ones you want, and exports them all in one Word session — so the PDFs match Word's own output, not a parser's guess.

DocxToPDF terminal export flow
Problem

Exporting DOCX to PDF by hand is tedious, and LibreOffice or library converters quietly mangle complex Word layouts.

What I built

A TypeScript TUI that finds DOCX via Spotlight, offers keyboard multi-select, and drives Microsoft Word over AppleScript to export in a single batch session.

Result

Layout fidelity stays Word-exact, and the open-export-close loop disappears.

Audience

For anyone on a Mac who has to turn a pile of Word documents into faithful PDFs.

Developer setup

source without GitHub CLI git clone https://github.com/jx-grxf/DocxToPDF.git && cd DocxToPDF
source with GitHub CLI gh repo clone jx-grxf/DocxToPDF && cd DocxToPDF
latest release open https://github.com/jx-grxf/DocxToPDF/releases/tag/v0.1.0

Highlights

  • Uses Microsoft Word itself as the renderer, so PDFs match Word's own export.
  • Spotlight-searches the whole Mac for DOCX, with a filesystem fallback.
  • Keyboard multi-select and filter; one Word session exports the whole batch.
  • Optional OCRmyPDF layer keeps the output searchable.