Markdown to PDF for Openclaw

A professional conversion tool that transforms Markdown text into high-quality PDF documents with syntax highlighting and custom styling support.

alone86136
v1.0.0
Mar 24, 2026
0
937
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install markdown-to-pdf

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install markdown-to-pdf using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Markdown to PDF?

The markdown-to-pdf skill is a specialized utility designed for Openclaw Skills that bridges the gap between lightweight Markdown documentation and professional PDF distribution. By leveraging the markdown package for HTML conversion and wkhtmltopdf for high-fidelity rendering, it enables developers to generate polished reports, technical documentation, or personal notes without leaving their environment.\n\nThis tool ensures that your output is completely standalone, embedding all necessary styles and code highlighting directly into the PDF. Whether you are generating a quick README export or a stylized technical manual, this skill provides a robust foundation for high-quality document automation within the Openclaw Skills ecosystem.

Markdown to PDF Use Cases

  • Generating professional-grade documentation from project README files.\n- Converting personal notes or study guides into shareable PDF formats.\n- Automating report generation within a CI/CD pipeline or local workflow.\n- Creating styled technical manuals with embedded code block syntax highlighting.

How Markdown to PDF Works

  1. The skill reads the source Markdown file and processes the text content.\n2. It utilizes the markdown Python package to transform the Markdown syntax into standard HTML5 structure.\n3. Syntax highlighting is applied to code blocks via Pygments to ensure technical clarity.\n4. If a custom CSS file is provided, it is injected into the intermediate HTML document.\n5. Finally, the wkhtmltopdf engine renders the HTML into a high-quality, standalone PDF file.

Markdown to PDF Setup

To get started with this tool in the context of Openclaw Skills, ensure you have the necessary dependencies installed:\n\nbash\n# Install Python dependencies\npip install markdown pygments\n\n# Install the wkhtmltopdf system binary\n# macOS\nbrew install wkhtmltopdf\n\n# Ubuntu/Debian\nsudo apt install wkhtmltopdf\n\n\nAfter installation, you can run the conversion script directly:\n\nbash\npython3 scripts/convert.py input.md output.pdf\n

Markdown to PDF Data Schema & Taxonomy

The skill operates primarily through file-based input and output. The organization of data follows a simple schema:\n\n| Component | Type | Description |\n| :--- | :--- | :--- |\n| Source File | .md | The input Markdown file containing text and code blocks. |\n| Style Sheet | .css | (Optional) Custom CSS file to override default PDF styling. |\n| Output File | .pdf | The generated document with embedded styles and fonts. |\n| Script | .py | The conversion logic located in scripts/convert.py. |

Markdown to PDF Advanced Features

  • Custom CSS injection for brand-aligned document styling.\n- Comprehensive syntax highlighting for multiple programming languages via Pygments.\n- Standalone PDF generation with embedded assets for easy sharing.\n- Command-line interface support for seamless integration into larger automation workflows within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*