huashu-deck-pdf-export
PDF generation from web layouts. Use when exporting web layouts or dashboard reports directly to print or PDF format.
SKILL.mdskills/huashu-deck-pdf-export/SKILL.md
GitHubWeb to PDF Export (Redesigned)
Purpose
Generate high-fidelity, print-ready PDF layouts directly from the browser using strict CSS @media print rules.
When to Use This Skill
Use when:
- Exporting dashboard analytics, tables, or structured reporting data to PDF/print.
- Injecting strict
@media printCSS layers into web layouts.
Do NOT use when:
- The user asks for automated backend Puppeteer or Playwright scripting.
Phase 1: Print-Stylesheet Enforcement
- Abandon Puppeteer Scripting: Do not generate backend Node.js scraping scripts to render PDFs.
- CSS Print Media: Inject a strict
@media printCSS layer into the application. - Break Controls: Enforce
break-inside: avoidon all major container blocks (cards, charts, tables) to prevent layout tearing across pages. - Fixed Layouts: Rely on strict A4/16:9 CSS aspect ratios combined with
page-break-beforeandpage-break-after.
Output Format / Delivery
- High-fidelity
@media printCSS stylesheets and native browser print triggers (window.print()).
Behavior Rules
- Never generate backend headless browser scrapers or scripts.
- Reset all sticky/fixed headers to static within
@media printto prevent layout bugs. - Abort output and self-reject if asked to write Puppeteer/Playwright scripts.
Maintenance Notes
- Complete redesign from v1. Deprecated Puppeteer automation in favor of robust CSS
@media printengineering.