GitHub README转PDF
获取GitHub README并渲染为带样式的PDF
从GitHub README生成PDF。
**来源:**
- 仓库URL或 `owner/repo`
- 可选分支与README路径
**输出:**
- GitHub风格排版与打印设置
API 文档
请求端点
POST /zh/api/tools/github-readme-to-pdf
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| repository | text | 是 | - |
| branch | text | 否 | - |
| readmePath | text | 否 | - |
| theme | select | 否 | - |
| baseFontSize | number | 否 | - |
| pageSize | select | 否 | - |
| landscape | checkbox | 否 | - |
| printBackground | checkbox | 否 | - |
| marginTop | number | 否 | - |
| marginBottom | number | 否 | - |
| marginLeft | number | 否 | - |
| marginRight | number | 否 | - |
| waitUntil | select | 否 | - |
| waitTime | number | 否 | - |
响应格式
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}
文件:
文件
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-github-readme-to-pdf": {
"name": "github-readme-to-pdf",
"description": "获取GitHub README并渲染为带样式的PDF",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=github-readme-to-pdf",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。
如果遇见问题,请联系我们:[email protected]