convert_markdown_to_pdf
Convert Markdown files to PDF documents with customizable themes, optional table of contents, watermark, and QR code support.
Instructions
Enhanced Markdown to PDF conversion with beautiful styling and theme support. Watermark can be added by setting addWatermark=true (uses WATERMARK_IMAGE environment variable or default text "doc-ops-mcp"). QR code can be added by setting addQrCode=true (requires QR_CODE_IMAGE environment variable). Requires playwright-mcp for final PDF generation. Output directory is controlled by OUTPUT_DIR environment variable. Files will be automatically saved to OUTPUT_DIR with auto-generated names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdownPath | Yes | Markdown file path to convert | |
| theme | No | Theme to apply | github |
| includeTableOfContents | No | Generate table of contents | |
| addWatermark | No | Add watermark to PDF (uses WATERMARK_IMAGE environment variable or default text "doc-ops-mcp") | |
| addQrCode | No | Add QR code to PDF (requires QR_CODE_IMAGE environment variable) |