{"id":18099383,"url":"https://github.com/bmpi-dev/git2pdf","last_synced_at":"2025-06-19T16:40:45.521Z","repository":{"id":62429818,"uuid":"166796180","full_name":"bmpi-dev/git2pdf","owner":"bmpi-dev","description":"print github nested markdown file all in one pdf","archived":false,"fork":false,"pushed_at":"2019-03-30T04:23:31.000Z","size":14388,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T14:53:30.706Z","etag":null,"topics":["elixir","github","markdown","pdf","wkhtmltopdf"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/bmpi-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-21T10:36:45.000Z","updated_at":"2021-11-26T22:40:39.000Z","dependencies_parsed_at":"2022-11-01T20:04:22.402Z","dependency_job_id":null,"html_url":"https://github.com/bmpi-dev/git2pdf","commit_stats":null,"previous_names":["madawei2699/git2pdf"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bmpi-dev/git2pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmpi-dev%2Fgit2pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmpi-dev%2Fgit2pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmpi-dev%2Fgit2pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmpi-dev%2Fgit2pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmpi-dev","download_url":"https://codeload.github.com/bmpi-dev/git2pdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmpi-dev%2Fgit2pdf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260789709,"owners_count":23063617,"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":["elixir","github","markdown","pdf","wkhtmltopdf"],"created_at":"2024-10-31T21:08:26.602Z","updated_at":"2025-06-19T16:40:40.509Z","avatar_url":"https://github.com/bmpi-dev.png","language":"Elixir","readme":"# Git2PDF\n\n## Description\n\nGit2PDF is a simple parser which can make github nested markdown file all in one PDF.\n\n## Notice\n\nParse a markdown file which has a lot of url links can lead a very long time to make a PDF. The reason is Git2PDF need check every url status, if one links is broken which can throw a exception by **wkhtmltopdf** and it will faliure. One another is it need sleep 500ms every url check for github anti-crawler strategy.\n\n## Installation\n\nbefore you can use this lib, it need install **wkhtmltopdf** to parse html to pdf, install guid can found its [website](https://wkhtmltopdf.org/).\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `git2pdf` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:git2pdf, \"~\u003e 0.3.0\"}\n  ]\nend\n```\n\n## How to use\n\n### Input\n\n```iex\u003e GitHubParse.markdown_to_pdf \"https://github.com/remoteintech/remote-jobs/blob/master/README.md\", 2, false```\n\n```iex\u003e GitHubParse.markdown_to_pdf \"https://github.com/remoteintech/remote-jobs/blob/master/README.md\", 2, false, [\"--encoding\", \"utf-8\", \"-d\", \"300\", \"--zoom\", \"1.5\", \"--user-style-sheet\", \"/path/to/your/custom.css\"]```\n\nGit2PDF use wkhtmltopdf to generate pdf, the last param is wkhtmltopdf's params, your can find more in this [link](https://wkhtmltopdf.org/usage/wkhtmltopdf.txt)\n\n### Output\n\n```{\"/var/folders/k7/w1zkb4cn0472dk8t_j699pyc0000gn/T/KXiE8hJZ.html\", \"/var/folders/k7/w1zkb4cn0472dk8t_j699pyc0000gn/T/KXiE8hJZ.pdf\"}```\n\nYou can see this project README.md parse result in this [Git2PDF](git2pdf.pdf), and you can see it append the [CHANGELOG.md](CHANGELOG.md) to the [README.md](README.md).\n\nThe first is url, sencond is deep_level which mean how deepth which you want it get, the last is whether it check every url in markdown, mostly it doesn't need to check and you don't want to wait too long time.\n\n[Change Log](CHANGELOG.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmpi-dev%2Fgit2pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmpi-dev%2Fgit2pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmpi-dev%2Fgit2pdf/lists"}