{"id":16817707,"url":"https://github.com/spawnia/md-to-pdf","last_synced_at":"2025-04-06T00:06:51.458Z","repository":{"id":104384785,"uuid":"245004490","full_name":"spawnia/md-to-pdf","owner":"spawnia","description":"A web service for converting markdown to PDF","archived":false,"fork":false,"pushed_at":"2024-11-07T21:15:50.000Z","size":229,"stargazers_count":119,"open_issues_count":0,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T23:07:28.797Z","etag":null,"topics":["markdown","markdown-converter","pandoc","pdf","pdf-generator"],"latest_commit_sha":null,"homepage":"https://md-to-pdf.fly.dev","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spawnia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-04T21:09:18.000Z","updated_at":"2025-03-26T11:54:08.000Z","dependencies_parsed_at":"2023-11-16T15:56:15.127Z","dependency_job_id":"3c329fae-a401-4d2b-aee6-fcf16ecf47be","html_url":"https://github.com/spawnia/md-to-pdf","commit_stats":{"total_commits":56,"total_committers":3,"mean_commits":"18.666666666666668","dds":0.0357142857142857,"last_synced_commit":"11d62675f307eeb192d881d5562c435f77d73e81"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spawnia%2Fmd-to-pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spawnia%2Fmd-to-pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spawnia%2Fmd-to-pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spawnia%2Fmd-to-pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spawnia","download_url":"https://codeload.github.com/spawnia/md-to-pdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415967,"owners_count":20935388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["markdown","markdown-converter","pandoc","pdf","pdf-generator"],"created_at":"2024-10-13T10:48:02.063Z","updated_at":"2025-04-06T00:06:51.441Z","avatar_url":"https://github.com/spawnia.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# md-to-pdf\n\nA web service for converting markdown to PDF\n\n## Web UI\n\nFor quick experimentation, you can use [the web version](https://md-to-pdf.fly.dev) hosted on [Fly.io](https://fly.io).\nJust paste your markdown and download the converted PDF.\n\nAvailability of the service is not guaranteed, see [Fly.io status](https://status.flyio.net) when it is down.\nIf you need guaranteed availability, [deploy it yourself](#deploy).\n\n## API\n\nYou can convert markdown by sending a `POST` request to `https://md-to-pdf.fly.dev`.\n\n```shell\ncurl --data-urlencode 'markdown=# Heading 1' --output md-to-pdf.pdf https://md-to-pdf.fly.dev\n```\n\n| Parameter  | Required | Description                                                                                           |\n|------------|----------|-------------------------------------------------------------------------------------------------------|\n| `markdown` | Required | The markdown content to convert                                                                       |\n| `css`      | Optional | CSS styles to apply                                                                                   |\n| `engine`   | Optional | The PDF conversion engine, can be `weasyprint`, `wkhtmltopdf` or `pdflatex`, defaults to `weasyprint` |\n\nSend data from files like this:\n\n```shell\ncurl --data-urlencode \"markdown=$(cat example.md)\" \n```\n\n## Deploy\n\nA prebuilt container image is available at [Docker Hub](https://hub.docker.com/r/spawnia/md-to-pdf).\nThe container starts up the web service and listens for HTTP on port 8000.\n\nYou can run it yourself like this:\n\n```shell\ndocker run --publish=8000:8000 spawnia/md-to-pdf\n```\n\nYou may configure the webserver through [Rocket environment variables](https://rocket.rs/guide/v0.5/configuration#environment-variables).\nFor example, you could allow larger payloads by increasing the limit for form data:\n\n```dotenv\nROCKET_LIMITS={form=\"1MiB\"}\n```\n\n## Built with\n\n- [Rocket - a web framework for Rust](https://rocket.rs)\n- [Pandoc - a universal document converter](https://pandoc.org)\n- [Codemirror - a text editor for the browser](https://codemirror.net)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspawnia%2Fmd-to-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspawnia%2Fmd-to-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspawnia%2Fmd-to-pdf/lists"}