一键导入
pdf-generate
"Print to PDF" — render a markdown/text report (headings, paragraphs, bullet lists) to a clean PDF document.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
"Print to PDF" — render a markdown/text report (headings, paragraphs, bullet lists) to a clean PDF document.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Read, filter, select, aggregate, and join CSV / tabular data without spinning up a full data stack.
jq-style select, filter, and reshape over JSON and YAML — extract paths, map arrays, and filter records without writing throwaway code.
Write a dataset (array of records) to CSV, JSON, XLSX, or PDF through one interface — format chosen by the output extension.
Read, write, search, and edit files in the workspace safely — atomic writes, exact-match edits, and recursive content search.
Everyday git — clone, branch, stage, diff, commit, and push, with a safe, predictable workflow.
Make HTTP/REST requests with auth, custom headers, query/body, pagination, retries with backoff, and structured error handling.
| name | pdf-generate |
| description | "Print to PDF" — render a markdown/text report (headings, paragraphs, bullet lists) to a clean PDF document. |
Turn a report into a PDF. Use this when a task asks for a PDF deliverable — a summary, a report, an invoice-like document — rather than leaving the output as plain text.
The helper at scripts/md_to_pdf.py uses reportlab (pip install reportlab)
because it is pure-Python and needs no system libraries — it works in any runtime
out of the box. It renders a practical subset of markdown: #/##/###
headings, paragraphs, and -/* bullet lists.
If you need full HTML/CSS fidelity (complex layout, web pages), use
weasyprint instead (pip install weasyprint) — note it requires system
libraries (Cairo, Pango), so the runtime must have those; prefer the reportlab
helper when your input is a report you control.
# Markdown file -> PDF
python scripts/md_to_pdf.py report.md report.pdf
# From stdin, with a document title
python scripts/md_to_pdf.py - report.pdf --title "Q3 Summary" < report.md
The input is markdown (or plain text — plain text just becomes paragraphs). The output is a paginated PDF on US Letter with sensible margins.
ls -l report.pdf) — a 0-byte
PDF means rendering failed.| Markdown | Renders as |
|---|---|
# Title | large heading |
## Section / ### Sub | smaller headings |
- item or * item | bullet list item |
| blank-line-separated text | paragraphs |
Anything fancier (tables, images, inline emphasis) is rendered as plain text. If
you need those, pre-render to HTML and use weasyprint.
pip install reportlab (or
weasyprint) before this runs — it is not stdlib.