Skip to content

Claude Code

bentopdf ships a first-class Claude Code skill. Once installed, you can ask Claude to convert files to PDF and it will use bentopdf under the hood.

The fastest way is via the skills CLI:

Terminal window
npx skills add lokkju/bentopdf-sh -a claude-code

This clones the skill from the skills/to-pdf/ directory in this repository into your Claude Code skills directory (~/.claude/skills/to-pdf/).

Alternatively, install the full Claude Code plugin, which includes the skill plus plugin metadata:

Terminal window
# Copy the plugin directory into your Claude plugins folder
cp -r .claude-plugin ~/.claude/plugins/bentopdf

Or add it to your project’s .claude/ directory for project-scoped access.

When active, Claude will recognise requests like:

  • “Convert report.docx to PDF”
  • “Turn these slides into a PDF”
  • “Make a PDF from all the markdown files in this directory”

Claude translates those into bentopdf to-pdf commands and runs them in your terminal.

Convert the file at ~/Downloads/quarterly-report.docx to PDF and put it on my Desktop.
Convert all the .md files in ./docs to PDF, output them to ./pdfs/.
I have a bunch of screenshots in ./screenshots — merge them into a single PDF.

The skill activates on any of:

  • “convert * to pdf” / “make * a pdf”
  • “export * as pdf”
  • “pdf from *”
  • Anything involving bentopdf directly

The skill checks that bentopdf is available before running. If not found, it suggests installing via npm install -g bentopdf-sh.