generate-pdf

Convert markdown documents into styled PDF files with custom formatting.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/ly2xxx/dot-claude-playground --skill generate-pdf-ly2xxx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-pdf
Source: https://github.com/ly2xxx/dot-claude-playground/tree/main/.claude/skills/generate-pdf
Command: npx skills add https://github.com/ly2xxx/dot-claude-playground --skill generate-pdf-ly2xxx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markdown, weasyprint, xhtml2pdf, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of polished PDF documents from markdown files, simplifying document preparation and sharing.

Core Features & Use Cases

  • Markdown to PDF Conversion: Transforms markdown files into aesthetically styled PDFs with professional formatting.
  • Custom Styling: Applies fonts, margins, headers, and computer code highlighting for presentation-quality output.
  • Use Case: Generate a report from a markdown draft for client delivery, ensuring consistent formatting without manual rework.

Quick Start

Use the generate-pdf Skill to convert your markdown file 'project-overview.md' into a styled PDF.

Frequently Asked Questions about generate-pdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert markdown to a styled PDF for client delivery?

You can convert markdown to a styled PDF by parsing the document and applying custom fonts, margins, and code highlighting to generate publication-ready output for client reporting workflows.

Can I customize PDF styling like fonts and margins when converting markdown?

Yes, markdown to PDF conversion supports custom styling by applying specific fonts, configuring margins, adding headers, and highlighting computer code to ensure presentation-quality formatting.

Do I need Python libraries to generate a PDF from markdown?

Yes, PDF generation from markdown requires Python libraries. The conversion process depends on markdown parsing and PDF generation packages like WeasyPrint or xhtml2pdf to render the final styled document.

What is the best way to automate report generation from markdown drafts?

The best way to automate report generation from markdown is using a conversion tool that transforms drafts into aesthetically styled PDFs, ensuring consistent formatting without manual rework for document preparation.

Does WeasyPrint work with markdown for PDF document creation?

Yes, WeasyPrint works with markdown for PDF document creation by acting as a dependency that renders parsed markdown content into styled, professional PDF files with customized formatting.