{"id":20590009,"url":"https://github.com/doist/pdfsvc","last_synced_at":"2025-05-09T23:32:14.907Z","repository":{"id":25739142,"uuid":"103561405","full_name":"Doist/pdfsvc","owner":"Doist","description":"html to pdf conversion service","archived":true,"fork":false,"pushed_at":"2023-10-20T12:06:55.000Z","size":5397,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T21:44:27.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Doist.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":"2017-09-14T17:25:21.000Z","updated_at":"2024-06-17T10:52:34.000Z","dependencies_parsed_at":"2022-07-27T05:32:10.890Z","dependency_job_id":"43c820ce-5330-4c84-9b13-d8adfd5a18de","html_url":"https://github.com/Doist/pdfsvc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fpdfsvc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fpdfsvc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fpdfsvc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fpdfsvc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Doist","download_url":"https://codeload.github.com/Doist/pdfsvc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253341963,"owners_count":21893546,"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":[],"created_at":"2024-11-16T07:33:36.482Z","updated_at":"2025-05-09T23:32:14.619Z","avatar_url":"https://github.com/Doist.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Command pdfsvc is a small wrapper around [WeasyPrint command][1] to expose it as\na http service.\n\n[1]: https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#command-line\n\nService accepts POST requests expecting html bodies and proper `Content-Type:\ntext/html` header. If html is not utf8, either set proper encoding in\n`Content-Type` header or directly in html. If html is successfully converted,\nreply would have code 200 OK and `Content-Type: application/pdf`, the body\nwould be a pdf document.\n\nIf pdfsvc is started with `TOKEN` environment variable or `-token=value` flag,\nonly requests having `Authorization: Bearer token` header are allowed.\n\nYou can build ready-to-use docker image using Dockerfile from this repository\n(Docker 17.05 or later is required):\n\n\tdocker build -t pdfsvc:latest .\n\nThen run it:\n\n\tdocker run -p 8080:8080 --rm pdfsvc\n\nYou can use `ADDR` environment variable to change address service listens at\nand `TOKEN` to enable request authentication.\n\nExample of calling service listening on localhost:8080 with curl:\n\n\tcurl -sD- -o output.pdf -T input.html \\\n\t\t-X POST -H \"Content-Type: text/html\" http://localhost:8080/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoist%2Fpdfsvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoist%2Fpdfsvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoist%2Fpdfsvc/lists"}