markdown-to-pdf
Convert Markdown files to beautiful PDF documents. Supports custom styling, code highlighting, and multiple output options. Use when users need to convert MD to PDF for documentation, notes, reports, or sharing.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alone86136/markdown-to-pdfWhat This Skill Does
The markdown-to-pdf skill for OpenClaw provides a professional-grade pipeline for transforming raw Markdown files into polished, ready-to-share PDF documents. By leveraging the power of Python-based Markdown parsing and the robust wkhtmltopdf engine, this skill bridges the gap between text-based documentation and portable, static document formats. It is designed to handle complex formatting, including embedded code snippets with syntax highlighting, ensuring that your technical notes, reports, or documentation retain their visual integrity and readability when distributed as PDF files.
Installation
To integrate this skill into your OpenClaw environment, ensure you have the necessary system-level dependencies. Run the following command in your terminal:
clawhub install openclaw/skills/skills/alone86136/markdown-to-pdf
Please ensure your host environment has wkhtmltopdf installed. For macOS users, use brew install wkhtmltopdf. For Ubuntu/Debian, use sudo apt install wkhtmltopdf. Additionally, the underlying Python scripts require markdown and pygments packages, which are typically handled by the skill installation process.
Use Cases
- Documentation Generation: Quickly transform local Markdown technical manuals into professional PDF guides for stakeholders or customers.
- Report Creation: Compile research, meeting notes, or data-driven insights into a clean, paginated PDF format that is easy to email or share via Slack.
- Academic or Personal Projects: Convert study notes and research drafts into permanent, formatted archives.
- Custom Branding: Apply unique CSS styles to your documentation to match corporate visual identity standards, ensuring every export looks consistent.
Example Prompts
- "Hey OpenClaw, please convert the project_documentation.md file into a PDF and save it as final_report.pdf."
- "Can you take architecture.md and export it to a PDF using the custom styles defined in style.css?"
- "Convert my notes.md file to a PDF for me so I can share it with the engineering team."
Tips & Limitations
To get the best results, ensure your Markdown syntax is clean and well-structured. While the skill supports custom CSS, complex layouts might require adjustments to your CSS margins and media queries to ensure proper pagination. Note that this skill requires local file read/write permissions to process your files. If you encounter issues with broken images, ensure all image paths in your Markdown file are either absolute or correctly relative to the working directory. Large files with significant numbers of high-resolution images may take a few moments to process depending on the system's available memory.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-alone86136-markdown-to-pdf": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, code-execution
Related Skills
local-qrcode
Generate QR codes locally from text/URL to PNG image or ASCII art. Pure local generation using qrcode library. No API key required. Use when users need to create QR codes for links, text, or any content.
local-password
Generate secure random passwords and check password strength. Supports custom length and character types (uppercase, lowercase, numbers, symbols). Pure local operation, no external dependencies. Use when users need to generate new secure passwords or check password strength.
open-exchange-rate
Get real-time exchange rates and currency conversion using free public ExchangeRate-API. No API key required. Use when users ask for current exchange rates, currency conversion calculations, or need to check currency prices.