majiayu000/claude-skill-registry-data/pdf-ebook
- community
Checking that the SKILL.md file is still in the repository.
Author "majiayu000" has blocked skill(s)
Convert any file format (markdown, text, HTML) into a professionally styled PDF e-book using WeasyPrint. Supports single files, directories of files, and custom styling. Use when generating PDF deliverables from content files.
Install
npx vskill@latest install majiayu000/claude-skill-registry-data/pdf-ebookSKILL.md
Convert content files to a styled PDF e-book: $ARGUMENTS
$ARGUMENTS should specify: the source file or directory path, and optionally: title, subtitle, author, output path, or style overrides. If no arguments, ask the user.
Before Starting
- Identify the source: single file or directory of files
- If a directory, determine file order (numeric prefixes, alphabetical, or custom)
- Read source files to understand content structure (headings, tables, lists, images)
- Check for any existing cover or metadata files
Process
- Gather content — Read all source files in order. For directories, sort by filename (numeric prefixes respected).
- Generate the conversion script — Write a Python script to
/tmp/pdf_ebook_convert.pythat:
- Reads and concatenates all markdown/text/HTML files
- Converts markdown to HTML via the
markdownPython library (withtables,toc,fenced_code,metaextensions) - Wraps in a full HTML document with embedded CSS
- Generates PDF via WeasyPrint
- Run the script — Execute with
python3 /tmp/pdf_ebook_convert.py - Report — Show the output path and page count
Styling Defaults
The default e-book style uses:
- Page size: US Letter with 1in margins
- Body font: Georgia, serif at 11pt / 1.6 line-height
- Heading font: system sans-serif stack
- Colors: Dark charcoal text (#1a1a1a), accent for headings (#2c3e50)
- Tables: Clean bordered style with subtle header background
- Page breaks: Before each H1; avoid breaks inside tables, figures, blockquotes
- Header/footer: Running title in header, page numbers in footer
- Cover page: First page with title, subtitle, author centered
The user may override any of these via $ARGUMENTS (e.g., "dark theme", "A4 size", "sans-serif body").
Dependencies
Requires Python packages: weasyprint, markdown. Both should be installed. If missing, install with pip3 install weasyprint markdown.
Output
Default output path: same directory as source, named {title-slug}.pdf. User may specify a custom output path.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingother/pdf-ebook/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/majiayu000/claude-skill-registry-data/pdf-ebook)