设计与多媒体

Beautiful PDF

试用

Design and visually review print-ready PDFs

它能做什么

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.

技能文档

Beautiful PDF

Turn structured content into a designed document, then inspect the rendered pages before delivery.

Workflow

  1. Choose the document pattern in references/doc-types.md.

  2. Draft in Markdown for linear documents or HTML for custom layouts.

  3. Start from assets/default.css and select a restrained palette from references/style-guide.md.

  4. 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
    
  5. Rasterize every page and inspect it:

    python3 scripts/pdf-to-png.py output.pdf /tmp/pdf-qa --dpi 200
    
  6. 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 title when 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.

相关技能

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.

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).

6 次安装

将 PDF 和图片转换为 10 种文档或数据格式,并提供 OCR 与版面分析控制。

作者 ComPDF32 次安装95 星标

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...

3 次安装

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...

13 次安装