Categories

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

Example Results

1 examples

GitHub README to PDF

Repository README converted to PDF

github-readme-to-pdf-example1.pdf View File
View input parameters
{ "repository": "https://github.com/meilisearch/meilisearch", "theme": "print", "baseFontSize": 13 }

Key Facts

Category
Document Tools
Input Types
text, select, number, checkbox
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

Easily convert any GitHub repository README file into a professional, print-ready PDF document while maintaining GitHub-flavored styling.

When to Use

  • Creating offline documentation for project repositories.
  • Archiving project READMEs for compliance or reporting.
  • Generating clean, readable PDFs for presentations or stakeholder reviews.

How It Works

  • Enter the GitHub repository URL or the owner/repo identifier.
  • Specify the branch and file path if your README is not in the default location.
  • Adjust styling options like font size, page orientation, and margins.
  • Click generate to render the repository content into a downloadable PDF.

Use Cases

Compiling technical documentation for internal project handovers.
Creating physical project manuals for offline team access.
Exporting project summaries for non-technical stakeholders.

Examples

1. Project Documentation Export

Technical Writer
Background
The team needs to include the project's README in a formal technical manual for a client.
Problem
Copy-pasting markdown into a document editor breaks formatting and images.
How to Use
Input the repository URL, select 'Print' theme for a cleaner look, and set the page size to A4.
Example Config
{"repository": "https://github.com/org/project", "theme": "print", "pageSize": "A4"}
Outcome
A perfectly formatted, print-ready PDF document that matches the client's documentation standards.

Try with Samples

markdown, pdf

Related Hubs

FAQ

Can I convert a README from a private repository?

This tool currently supports public GitHub repositories only.

Does the PDF retain the original GitHub styling?

Yes, the tool applies GitHub-flavored markdown styling to ensure the PDF looks consistent with the web version.

Can I change the page size of the output?

Yes, you can select from various page sizes including A4, Letter, Legal, and A5.

What if my README is in a subfolder?

You can specify the exact file path in the 'README Path' field to target files other than the root README.md.

Is it possible to print the background colors?

Yes, the 'Print Background' option is enabled by default to ensure all visual elements are captured in the PDF.

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]