{"id":23960862,"url":"https://github.com/pawel-slowik/htmlpdf","last_synced_at":"2026-04-24T20:31:15.165Z","repository":{"id":111444448,"uuid":"240796757","full_name":"pawel-slowik/htmlpdf","owner":"pawel-slowik","description":"Create PDF documents from YAML data and Jinja2 HTML templates.","archived":false,"fork":false,"pushed_at":"2025-05-30T11:18:48.000Z","size":55,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-28T17:10:59.170Z","etag":null,"topics":["cli","jinja2","pdf-generation","yaml"],"latest_commit_sha":null,"homepage":"","language":"Python","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/pawel-slowik.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,"zenodo":null}},"created_at":"2020-02-15T22:28:19.000Z","updated_at":"2025-05-30T11:18:52.000Z","dependencies_parsed_at":"2024-12-11T15:26:06.694Z","dependency_job_id":"715a7efe-b7f4-4393-82d3-7f2fe75dbc86","html_url":"https://github.com/pawel-slowik/htmlpdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pawel-slowik/htmlpdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawel-slowik%2Fhtmlpdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawel-slowik%2Fhtmlpdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawel-slowik%2Fhtmlpdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawel-slowik%2Fhtmlpdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pawel-slowik","download_url":"https://codeload.github.com/pawel-slowik/htmlpdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawel-slowik%2Fhtmlpdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32239441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","jinja2","pdf-generation","yaml"],"created_at":"2025-01-06T19:57:24.517Z","updated_at":"2026-04-24T20:31:15.160Z","avatar_url":"https://github.com/pawel-slowik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Build Status][build-badge]\n[![Coverage][coverage-badge]][coverage-url]\n\n[build-badge]: https://github.com/pawel-slowik/htmlpdf/workflows/tests/badge.svg\n[coverage-badge]: https://codecov.io/gh/pawel-slowik/htmlpdf/branch/master/graph/badge.svg\n[coverage-url]: https://codecov.io/gh/pawel-slowik/htmlpdf\n\nA tool for creating PDF documents from YAML data and [Jinja2][jinja2] HTML\ntemplates. Uses the excellent [WeasyPrint][weasyprint] library for rendering\nHTML to PDF.\n\n[jinja2]: https://palletsprojects.com/p/jinja/\n[weasyprint]: https://weasyprint.org/\n\n## Installation\n\nThe script is not packaged, run it from a repository clone. Install\ndependencies with:\n\n\tpip3 install -r requirements.txt\n\nOn Debian 12 / Bookworm and 13 / Trixie you can use packages provided by the OS:\n\n\tsudo apt-get install weasyprint python3-jinja2 python3-yaml python3-unidecode\n\nOr use Docker:\n\n\tdocker compose build\n\n## Usage\n\nRun:\n\n\t./htmlpdf.py -i input.yaml -t template.html -o output.pdf\n\nWith Docker:\n\n\tdocker compose run --rm cmd ./htmlpdf.py -i input.yaml -t template.html -o output.pdf\n\n## Examples\n\n\tcd examples\n\t../htmlpdf.py -i CV_PL.yaml -t CV_PL.html -o CV_PL.pdf\n\t../htmlpdf.py -i CV_PL.yaml -i CV_star_ratings.yaml -t CV_star_ratings.html -o CV_star_ratings.pdf\n\nWith Docker:\n\n\tdocker compose run --rm example1\n\tdocker compose run --rm example2\n\n## Development\n\nRun checks and tests:\n\n    docker compose run --rm check\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawel-slowik%2Fhtmlpdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpawel-slowik%2Fhtmlpdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawel-slowik%2Fhtmlpdf/lists"}