generate-pdf
Installation
SKILL.md
Generate a production-grade branded PDF from a markdown source file using the pdf-factory pipeline.
$ARGUMENTS
Parse arguments: <markdown-file> [--brand <name>] [--output <path>]
<markdown-file>-- path to the source markdown file (required)--brand <name>-- brand kit name:bluewaves,wave-artisans, ordecathlon(default:bluewaves)--output <path>-- output PDF path (default: same directory as input,.pdfextension)
Steps
-
Parse arguments from
$ARGUMENTS. Extract markdown file path, brand name, and output path. -
Verify dependencies are installed:
python3 -c "import xhtml2pdf, reportlab, pypdf, markdown, lxml, PIL, html5lib, cssselect2" 2>/dev/nullIf this fails, run the install-docs-deps skill first.