AI-native print-grade PDF generator. Markdown in, publisher-quality PDF out.
Markdown 进,出版社级 PDF 出,自带 0–100 印刷级质检报告。
English · 简体中文 · ✨ 在线画廊 / Live showcase · ▶ 在线试玩 / Live demo
Imprint 是一个 AI 原生的中文印刷级 PDF 生成器。它把 Markdown 当成草稿,把 PDF 当成成品——按出版物的标准排版:宋体正文、黑体标题、首行缩进、标点避头尾、目录页码精确、表格跨页重复表头、代码不截断。生成之后,机器自动给这份 PDF 打分:0–100 印刷级评分,逐项给出证据。
▶ 不想装?直接在线试玩: 在浏览器里粘贴 Markdown → 生成印刷级 PDF + 0–100 质检分(免费,限 20 次/小时/IP)
# 方式一:一行命令(自动安装引擎,跨平台)
npx imprint-pdf 论文.md
# 方式二:pip 安装(已发布到 PyPI)
pip install imprint-pdf
imprint 论文.md
# 常用命令
npx imprint-pdf --new report # 从模板起稿
npx imprint-pdf --list-themes # 24 套主题
npx imprint-pdf 论文.md --theme academic --out 论文.pdf





imprint --new paper 一键生成双栏学术论文:摘要/关键词通栏,正文双栏排版,标题不落页尾、表格不跨栏截断、行内公式不断行。
英文论文用 imprint --new ieee:IEEE 风格(Times 10pt 紧凑双栏 + IEEE 蓝),
lang: en 自动切换文档语言标签,Abstract / Index Terms 通栏。
imprint --new gongwen 一键生成符合《党政机关公文格式》的红头文件:
红色发文机关标志、发文字号、红色分隔线(★)、黑体标题、仿宋三号正文、
右对齐落款与成文日期。
换肤 = 一行命令:imprint paper.md --theme wine;不指定也会智能换肤——自动分析内容气质选主题并说明理由(如周报自动用 graphite,论文自动用 academic)。
大多数 Markdown→PDF 工具(pandoc 默认、md2pdf 系、Chrome 打印)只是"把文字倒进页面"。Imprint 的三个差异点:
pip install imprint-pdf
# 图表支持(可选)
pip install imprint-pdf[charts]
# MCP server(可选,Agent 一句话出报告)
pip install imprint-pdf[mcp]
imprint paper.md -o paper.pdf
imprint paper.md --theme sepia --compress
# 从模板起稿(报告/书籍/简历/技术文档/信函)
imprint --new report -o my_report.md
# 启动 MCP server(stdio),供 Claude Code / Cursor / DeepSeek Harness 等接入
imprint-mcp
输出结尾是一张质检报告:
印刷级质检报告
==============================================
✓ 文本可选 15.0/15.0 平均每页 722 字符
✓ 字体子集嵌入 15.0/15.0 5/5 字体已嵌入
✓ 元数据完整 3.0/3.0 标题「印记」
✓ 标点避头尾 15.0/15.0 0 违规
✓ 孤行寡行 9.0/9.0 0 处
✓ 目录页码 15.0/15.0 核对 15 条
✓ 页码存在 2.0/2.0 8/9 页含页码
✓ PDF/UA 标签 3.0/3.0 Tagged PDF
✓ 主题字体生效 3.0/3.0 命中 songti
✓ 主题对比度 5.0/5.0 正文 17.0:1 …
✓ 缺字检测 5.0/5.0 无缺字回退
✓ 内容溢出 5.0/5.0 无内容越界
✓ 图片清晰度 5.0/5.0 全部达标
----------------------------------------------
总分 100.0/100 · 等级 A+ · 9 页
title / author / date 自动生成封面,标题自动生成可点击目录(页码精确)> [!NOTE] / [!TIP] / [!WARNING] / [!IMPORTANT] / [!CAUTION] 自动渲染为印刷级彩色提示卡,见 examples/alerts.md```mermaid 代码块自动渲染为矢量图(中文正常、无限缩放),未装引擎时优雅回退代码块,见 examples/charts.md$行内公式$ / $$块级公式$$ 渲染为矢量 SVG(matplotlib mathtext,无数学字体依赖),见 examples/math.mdimprint --new report|book|resume|techdoc|letter|paper|gongwen|ieee 一键起稿,模板自带对应排版气质(石墨灰报告 / 米黄书稿 / 等宽简历 / 海洋蓝技术文档 / 薰衣草信函 / 双栏学术论文 / 红头公文 / IEEE 英文论文)--compress 自动降采样超大图并重编码(实测 11.7MB → 1.4MB)pip install "imprint-pdf[mcp]" → imprint-mcp),Agent 一句话出报告(tools: render_markdown / list_themes / validate_pdf / new_document)| pandoc 默认 | Chrome 打印 | Imprint | |
|---|---|---|---|
| 中文印刷级 | 弱 | 弱 | 按规范 |
| 设计系统主题 | 无 | 无 | DTCG tokens |
| 质检报告 0–100 | 无 | 无 | 自带 |
| 数学公式 | 插件级 | 无 | 矢量内嵌 |
| 模板起稿 | 无 | 无 | 8 套内置 |
| 双栏学术排版 | 无 | 无 | 内置 |
| 公文格式(红头文件) | 无 | 无 | 内置 |
| WCAG 对比度检查 | 无 | 无 | 内置 |
| PDF/UA 无障碍 | 手动 | 无 | 默认 |
npx imprint(已上线)One-command installs: npx skills add 263311487-ux/falsify · npx dsh-verify · npx imprint
MIT
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
uvx imprint-pdfMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-263311487-ux-imprint-pdf": {
"command": "uvx",
"args": [
"imprint-pdf"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referenceimprint-pdfpypiImprint PDF works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.