Repository navigation
v0.1.0 - Initial release
Initial release of docx2pdf-cli — an honest, batch-aware DOCX → PDF CLI with hybrid backends (LibreOffice, Gotenberg, ConvertAPI, Apple Pages, Microsoft Word, textutil-cups).
Highlights
- Backend transparency —
--whyprints the full decision tree (which backend was selected, why the others were skipped).--strict-fidelityrefuses to silently fall back to the text-only backend. - Concurrency-safe LibreOffice — each call gets its own
-env:UserInstallationprofile dir, so--concurrency Nruns parallel conversions without the deadlocks that plague other LibreOffice wrappers. - Batch mode — multiple inputs with
--out-dir, NDJSON output via--jsonfor CI piping, continue-on-error per file, deterministic ordering. - Font preflight —
--check-fontsreports which fonts in the document aren't installed; an automatic stderr warning fires before LibreOffice/Gotenberg substitute silently. - Internal glob expansion for Windows and quoted patterns, so
docx2pdf "*.docx" --out-dir ./pdfsworks cross-shell.
Install
npm i -g docx2pdf-cliYou'll also need at least one backend's runtime (LibreOffice is the easiest). Run docx2pdf --doctor to see what's available on your machine.
Tests
85 tests across unit and subprocess suites. Run npm test.