{"id":37116521,"url":"https://github.com/janczer/htmlpdf","last_synced_at":"2026-01-14T13:39:32.441Z","repository":{"id":57485152,"uuid":"79267093","full_name":"janczer/htmlPDF","owner":"janczer","description":"Create PDF from HTML","archived":false,"fork":false,"pushed_at":"2018-05-24T20:35:01.000Z","size":50,"stargazers_count":25,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-13T20:44:06.794Z","etag":null,"topics":["go","golang","html","pdf"],"latest_commit_sha":null,"homepage":"","language":"Go","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/janczer.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}},"created_at":"2017-01-17T20:09:01.000Z","updated_at":"2024-10-22T08:49:04.000Z","dependencies_parsed_at":"2022-08-26T13:40:08.461Z","dependency_job_id":null,"html_url":"https://github.com/janczer/htmlPDF","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/janczer/htmlPDF","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janczer%2FhtmlPDF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janczer%2FhtmlPDF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janczer%2FhtmlPDF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janczer%2FhtmlPDF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janczer","download_url":"https://codeload.github.com/janczer/htmlPDF/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janczer%2FhtmlPDF/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["go","golang","html","pdf"],"created_at":"2026-01-14T13:39:31.967Z","updated_at":"2026-01-14T13:39:32.428Z","avatar_url":"https://github.com/janczer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Package for create pdf from html\n\n   Implement series article [Let's build a toy browser engine!](https://limpet.net/mbrubeck/2014/08/08/toy-layout-engine-1.html)\n\nInstall:\n\n    go get github.com/janczer/htmlPDF\n    go get github.com/jung-kurt/gofpdf\n\nExemple:\nFirst you need create 3 files. With html tags, css style and Go code:\n\n`first.html`:\n\n    \u003cdiv class=\"a\"\u003e\n        \u003cdiv class=\"b\"\u003e\n            \u003cdiv class=\"c\"\u003e\n                \u003cdiv class=\"d\"\u003e\n                    \u003cdiv class=\"e\"\u003e\n                        \u003cdiv class=\"f\"\u003e\n                            \u003cdiv class=\"g\"\u003e\n                            \u003c/div\u003e\n                        \u003c/div\u003e\n                    \u003c/div\u003e\n                \u003c/div\u003e\n            \u003c/div\u003e\n        \u003c/div\u003e\n\t\u003c/div\u003e\n\n`style.css`:\n\n    * { display: block; padding: 5px; }\n    .a { background: #ff0000; }\n    .b { background: #ffa500; }\n    .c { background: #ffff00; }\n    .d { background: #008000; }\n    .e { background: #0000ff; }\n    .f { background: #4b0082; }\n    .g { background: #800080; }\n    \n    \n`main.go`:\n\n    package main\n\n    import \"github.com/janczer/htmlPDF\"\n\n    func main() {\n        htmlPDF.Generate(\"first.html\", \"style.css\", \"hello.pdf\")\n    }\n\n![render](hello.jpg)\n\n### Todo:\n\u003chr\u003e\n\n- [ ] Add support Anonymous block\n- [ ] Add support Inline block\n- [ ] Add use CSS from style tag `\u003cstyle\u003e\u003c/style\u003e`\n\n\u003chr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanczer%2Fhtmlpdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanczer%2Fhtmlpdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanczer%2Fhtmlpdf/lists"}