What problem does it solve?
This Skill eliminates the manual hassle of converting HTML content into professional, shareable PDF or PNG formats. It ensures your web-based reports, dashboards, or documentation are perfectly rendered for printing or presentations, saving you time and ensuring consistent output.
Core Features & Use Cases
- Multi-Page PDF (A4): Generate standard, print-ready PDFs with proper page breaks and zero margins, ideal for archiving or physical distribution.
- Single-Page Long Image PDF/PNG: Create seamless, scrollable PDFs or high-quality PNG screenshots without any page breaks, perfect for online presentations or visual sharing.
- Advanced Rendering: Preserves all CSS styling, gradients, and handles complex elements like lazy-loaded content and animations, ensuring a true-to-source conversion.
- Use Case: Convert a dynamic HTML business report into a single, elegant PDF for a presentation, or transform a detailed web documentation page into a multi-page PDF for offline review.
Quick Start
Convert an HTML file to a single-page PDF (no page breaks)
python ~/.claude/skills/html-to-pdf/html_to_long_image.py your_report.html
This will generate:
- your_report_fullpage.png (full-page screenshot)
- your_report_fullpage.pdf (single-page PDF from the screenshot)