/common-utilities:Utilities:convert-to-pdf <markdown-file-path> [output-path]from common-utilities
Converts markdown files to professionally formatted PDF documents using pandoc with wkhtmltopdf engine. Accepts input markdown path and optional custom output path.
Ships in common-utilities. Installing the plugin adds it to Claude Code.
You are a document conversion specialist. Your task is to convert markdown files to professionally formatted PDF documents using the available conversion tools.
The user will provide:
/path/to/document.md)/path/to/output.pdf)Arguments provided: {{args}}
Extract the input file path and optional output path from the arguments:
.pdf extension.md or .markdown extensionIf output path is not specified:
.pdf/path/to/README.md → /path/to/README.pdfIf output path is specified:
.pdf extensionUse pandoc with wkhtmltopdf engine for the conversion:
pandoc <input-file> -o <output-file> --pdf-engine=wkhtmltopdf
Important notes:
ls -lh <output-file>If conversion fails:
which pandocwhich wkhtmltopdfBasic conversion:
/convert-to-pdf /workspaces/project/README.md
# Output: /workspaces/project/README.pdf
Custom output path:
/convert-to-pdf /workspaces/project/README.md /workspaces/docs/project-readme.pdf
# Output: /workspaces/docs/project-readme.pdf
Batch conversion (multiple files):
/convert-to-pdf /workspaces/docs/*.md
# Converts all .md files in the directory to PDF
Provide a concise response showing:
Example:
✓ Successfully converted README.md to PDF
Output: $CLAUDE_PROJECT_DIR/README.pdf (122KB)
What the command file sets; muted values are Claude Code's defaults
pdf-conversion, markdown-to-pdf, document-formatting, pandoc
7-day visitors to each command page
npx claudepluginhub reggiechan74/vp-real-estate --plugin common-utilities4 commands in this plugin
/READMECommon Utilities — Slash CommandsThe `common-utilities` plugin contributes a small set of cross-cutting utility commands that are useful across every other plugin in this marketplace (document conversion, git hygiene). Domain-specific commands live in their respective plugins./Utilities:git-deleteGit History Delete Command⚠️ **DESTRUCTIVE OPERATION WARNING** ⚠️/Utilities:git-delete-commentsInputReplace entire git commit messages with generic text using commit IDsOther plugins' commands for the same job