Getting Started
bentopdf-sh is a CLI wrapper for BentoPDF’s WASM engines. All conversion work is done by BentoPDF’s LibreOffice WASM, MuPDF, and pandoc-wasm engines — bentopdf-sh packages them as a command-line tool.
Prerequisites
Section titled “Prerequisites”- Node.js 20+ — check with
node --version - npm 9+ (comes with Node.js)
WASM engines are downloaded on first use and cached at ~/.cache/bentopdf/. An internet connection is required the first time each engine is used; after that it works fully offline.
Installation
Section titled “Installation”npx bentopdf-sh to-pdf report.docxNo installation required. Slower on first run while npm fetches the package.
npm install -g bentopdf-shMakes the bentopdf command available globally. Faster for repeated use.
npx skills add lokkju/bentopdf-sh -a claude-codeInstalls the bentopdf skill into Claude Code. Then just ask Claude to convert your files — see Claude Code for details.
Your first conversion
Section titled “Your first conversion”Convert a Word document to PDF:
bentopdf to-pdf report.docxOutput: report.pdf in the same directory as the input.
Convert multiple files at once:
bentopdf to-pdf slides.pptx notes.md screenshot.pngEach file is converted independently. Failures are reported at the end; successful conversions are not affected by other files failing.
Specify an output location
Section titled “Specify an output location”Write to a specific file:
bentopdf to-pdf report.docx --output ~/Desktop/report.pdfWrite to a directory (multiple inputs):
bentopdf to-pdf *.docx --output ./pdfs/Convert Markdown to DOCX or PPTX
Section titled “Convert Markdown to DOCX or PPTX”bentopdf can also convert Markdown and HTML to Word or PowerPoint — a feature that goes beyond what BentoPDF offers in the browser.
bentopdf to-docx notes.md # outputs notes.docxbentopdf to-pptx slides.md # outputs slides.pptxbentopdf to-docx notes.md -t brand-template.docx # apply a reference docUse --template (-t) to apply a reference document for branded output. See CLI Reference for details.
Next steps
Section titled “Next steps”- CLI Reference — all flags and subcommands
- Supported Formats — which engine handles which format
- Claude Code — use bentopdf from within Claude
- Troubleshooting — cache management and common errors