{"id":26787487,"url":"https://github.com/itsjimi/pdf-api","last_synced_at":"2025-03-29T12:25:39.060Z","repository":{"id":84016818,"uuid":"185981706","full_name":"ItsJimi/pdf-api","owner":"ItsJimi","description":"Convert HTML to PDF with a single endpoint","archived":false,"fork":false,"pushed_at":"2024-12-12T15:47:46.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-12T16:37:09.213Z","etag":null,"topics":["html","pdf","pdf-generation"],"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/ItsJimi.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":"2019-05-10T12:06:54.000Z","updated_at":"2024-12-12T15:47:48.000Z","dependencies_parsed_at":"2024-12-12T16:40:00.383Z","dependency_job_id":null,"html_url":"https://github.com/ItsJimi/pdf-api","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/ItsJimi%2Fpdf-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJimi%2Fpdf-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJimi%2Fpdf-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJimi%2Fpdf-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ItsJimi","download_url":"https://codeload.github.com/ItsJimi/pdf-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246183219,"owners_count":20736881,"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":["html","pdf","pdf-generation"],"created_at":"2025-03-29T12:25:38.463Z","updated_at":"2025-03-29T12:25:39.052Z","avatar_url":"https://github.com/ItsJimi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdf-api\nConvert `HTML` to `PDF` with a single endpoint.\n\n## Install\nBe sure to install [wkhtmltopdf](https://wkhtmltopdf.org/) before using `pdf-api`.\n\n## Launch\n```\n$ PORT=3000 pdf-api\n```\n\n## Endpoints\n### Generate\n#### Arguments\n```\n(String) orientation: \"[portrait|landscape]\"\n(String) url: \"\"\n(String) html: \"\"\n```\n`url` or `html` are required\n\n#### Request\n```request\nGET /generate\n```\n```\n?orientation=[portrait|landscape] \u0026url=https://google.fr \u0026html=\u003chtml\u003eHello\u003c/html\u003e\n```\n\n#### Response\n##### Error\n```json\n{\n  \"msg\": \"error message\"\n}\n```\n\n##### Success\nYour pdf file\n\n#### Request\n```request\nPOST /generate\n```\n```json\n{\n  \"orientation\": \"[portrait|landscape]\",\n  \"url\": \"https://google.fr\",\n  \"html\": \"\u003chtml\u003eHello\u003c/html\u003e\"\n}\n```\n\n#### Response\n##### Error\n```json\n{\n  \"msg\": \"error message\"\n}\n```\n\n##### Success\nYour pdf file\n\n## License\n[MIT](https://github.com/ItsJimi/pdf-api/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsjimi%2Fpdf-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsjimi%2Fpdf-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsjimi%2Fpdf-api/lists"}