{"id":15032066,"url":"https://github.com/georgiifirsov/md_to_pdf","last_synced_at":"2025-04-09T21:23:18.262Z","repository":{"id":48465753,"uuid":"364220922","full_name":"GeorgiiFirsov/md_to_pdf","owner":"GeorgiiFirsov","description":"Simple utility to convert from markdown format into pretty PDF document. It is written in Rust programming language.","archived":false,"fork":false,"pushed_at":"2024-05-29T15:38:24.000Z","size":735,"stargazers_count":8,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T23:16:12.536Z","etag":null,"topics":["markdown","pdf","pdf-converter","rust","rust-lang","rust-language"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GeorgiiFirsov.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":"2021-05-04T10:36:35.000Z","updated_at":"2025-01-29T03:00:36.000Z","dependencies_parsed_at":"2024-08-09T04:22:38.857Z","dependency_job_id":"dc3b5db8-598f-4919-9744-c6089bc80dcc","html_url":"https://github.com/GeorgiiFirsov/md_to_pdf","commit_stats":null,"previous_names":["georgiifirsov/md_to_pdf"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgiiFirsov%2Fmd_to_pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgiiFirsov%2Fmd_to_pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgiiFirsov%2Fmd_to_pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgiiFirsov%2Fmd_to_pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeorgiiFirsov","download_url":"https://codeload.github.com/GeorgiiFirsov/md_to_pdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248113089,"owners_count":21049781,"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","pdf","pdf-converter","rust","rust-lang","rust-language"],"created_at":"2024-09-24T20:17:14.830Z","updated_at":"2025-04-09T21:23:18.242Z","avatar_url":"https://github.com/GeorgiiFirsov.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# md_to_pdf\n\n### Brief\nSimple utility to convert from Markdown format into pretty PDF document. \nIt is written in Rust programming language using several libraries:\n- `comrak` to convert markdown into HTML,\n- `wkhtmltopdf` to parse HTML with embedded CSS and render PDF document.\n\n### How it works\nThis small console app converts Markdown text directly into HTML document,\nwhich is extended and decorated by CSS styles. Full CSS style is embedded\ninto the application as a resource and then inserted into the HTML document.\nAfter that application parses some HTML tokens and extends them by adding\ncustom classes to them. This HTML document is converted into PDF file.\n\n### Installing\n\n\n#### Linux and macOS\nDepends on [wkhtmltopdf][1] that can be downloaded and installed with a package \nmanager as such as apt, pacman or Homebrew. After installing this dependency run:\n```\ncargo install --git https://github.com/GeorgyFirsov/md_to_pdf.git\n```\n\n\n### Usage\n```shell\n./md_to_pdf -i ../my_awesome_document.md -o ../output/my_awesome_document.pdf\n```\n\n### Example\nCurrent Markdown document (this README.md) is converted into the following PDF:\n![Example](./docs/images/example.png)\n\n[1]: https://wkhtmltopdf.org/downloads.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgiifirsov%2Fmd_to_pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorgiifirsov%2Fmd_to_pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgiifirsov%2Fmd_to_pdf/lists"}