Troubleshooting
Cache management
Section titled “Cache management”WASM engine binaries are cached at:
~/.cache/bentopdf/engines/<engine-name>/<version>/List cached engines
Section titled “List cached engines”bentopdf cache listOutput example:
[email protected] 83.2 MB ~/.cache/bentopdf/engines/libreoffice/2.6.0/Clear the cache
Section titled “Clear the cache”bentopdf cache clearThis deletes all cached binaries. They will be re-downloaded on next use. Use this if an engine is corrupted or you want to free up disk space.
Common errors
Section titled “Common errors”Error: no engine registered for extension ".xyz"
Section titled “Error: no engine registered for extension ".xyz"”The file extension is not in bentopdf’s format registry. Either the format is unsupported, or the file has the wrong extension.
Fix: Check Supported Formats. If the format is compatible with an existing engine, use --engine to force it:
bentopdf to-pdf notes.txt --engine pandocError: engine download failed
Section titled “Error: engine download failed”The WASM binary could not be downloaded (network error, corporate proxy, or npm registry issue).
Fix:
- Check your internet connection and proxy settings.
- Try running with
npm config set registry https://registry.npmjs.orgif behind a custom registry. - Try
npx bentopdf-shinstead of global install — npx handles resolution differently.
Exit code: 3
Error: Cannot use a single filename output for multiple inputs
Section titled “Error: Cannot use a single filename output for multiple inputs”You passed --output report.pdf with multiple input files. A filename output only works with a single input.
Fix: Pass a directory instead:
bentopdf to-pdf *.docx --output ./pdfs/LibreOffice WASM crashes / runs out of memory
Section titled “LibreOffice WASM crashes / runs out of memory”LibreOffice WASM requires significant memory (~500 MB) for large Office documents.
Fix:
- Increase Node.js memory limit:
NODE_OPTIONS=--max-old-space-size=2048 bentopdf to-pdf large.docx - Convert large files one at a time rather than in batch.
Getting help
Section titled “Getting help”- GitHub Issues — bug reports and feature requests
- CLI Reference — full flag documentation