GitHub README to PDF
Fetch a GitHub README and render it to a styled PDF
Generate a PDF from a GitHub README.
**Source:**
- Repo URL or `owner/repo`
- Optional branch and README path
**Output:**
- GitHub-flavored styling with print-friendly settings
API Documentation
Request Endpoint
POST /en/api/tools/github-readme-to-pdf
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| repository | text | Yes | - |
| branch | text | No | - |
| readmePath | text | No | - |
| theme | select | No | - |
| baseFontSize | number | No | - |
| pageSize | select | No | - |
| landscape | checkbox | No | - |
| printBackground | checkbox | No | - |
| marginTop | number | No | - |
| marginBottom | number | No | - |
| marginLeft | number | No | - |
| marginRight | number | No | - |
| waitUntil | select | No | - |
| waitTime | number | No | - |
Response Format
{
"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)"
}
File:
File
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-github-readme-to-pdf": {
"name": "github-readme-to-pdf",
"description": "Fetch a GitHub README and render it to a styled PDF",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=github-readme-to-pdf",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
If you encounter any issues, please contact us at [email protected]