pdf to video, pdf to explainer video, pdf to presentation video — parse the PDF, outline, storyboard, voiceover, build, validate. Use when the user gives a PDF and wants an explainer, report broadcast, courseware, or training video.
Design & media
Beautiful PDF
Try itDesign and visually review print-ready PDFs
What it does
Produce polished, print-ready PDFs from Markdown or HTML with Pandoc, WeasyPrint, reusable CSS, and a mandatory rendered-page review loop. Use for reports, proposals, briefs, CVs, invoices, letters, dossiers, and other documents where layout quality matters.
The skill document
Beautiful PDF
Turn structured content into a designed document, then inspect the rendered pages before delivery.
Workflow
-
Choose the document pattern in references/doc-types.md.
-
Draft in Markdown for linear documents or HTML for custom layouts.
-
Start from assets/default.css and select a restrained palette from references/style-guide.md.
-
Render:
pandoc input.md --standalone --pdf-engine=weasyprint --css=assets/default.css -o output.pdf # Or, for hand-authored HTML: weasyprint input.html output.pdf -
Rasterize every page and inspect it:
python3 scripts/pdf-to-png.py output.pdf /tmp/pdf-qa --dpi 200 -
Fix overflow, weak hierarchy, widows/orphans, awkward breaks, clipped tables, low contrast, and inconsistent spacing. Render again until the pages are intentional.
Guardrails
- Do not pass Pandoc
--metadata titlewhen Markdown already contains an H1; it duplicates the title. - Keep source HTML static. WeasyPrint does not execute JavaScript.
- Use absolute or
file://paths for local images and fonts. - Preserve the original source alongside the PDF so later edits remain possible.
- Treat page inspection as part of completion, not an optional polish pass.
- Never silently install dependencies. If PyMuPDF, Pandoc, or WeasyPrint is missing, report the exact requirement.
Output
Use a user-approved destination. When no convention exists, prefer:
outputs/YYYY-MM-DD-descriptor.pdf
Before delivery, report the final page count, output path, and the visual issues checked.
Related skills
Beautify Word documents (.docx) using a professional general template. Trigger when the user asks to: beautify/美化/排版/格式化 a Word document, apply a template/style to a .docx file, make a document look professional/clean/formatted, or clean up a document's formatting. Works by reading the source .docx,
Convert Markdown research reports / fact-checks / scheme proposals into styled PDFs with native CJK (Chinese) font support. Markdown is the single source of truth; PDF is generated FROM the Markdown. Triggers on "做个 PDF 报告", "转成 PDF", "调研报告", "fact-check 报告", "方案 PDF", "scheme 报告", "给我 PDF", "PDF 版本", or any long-form analytical content that needs to be both editable (MD) and viewable/shareable (PDF).
Convert PDF and image files into 10 document and data formats, with OCR and layout controls.
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multipl...
Convert PDF documents to PowerPoint presentations via GoAI API. Use when the user asks to convert PDF to PPT, turn a PDF into slides, make a presentation fro...