{"id":21501274,"url":"https://github.com/nousefreak/docker-pdfgen","last_synced_at":"2026-02-23T04:02:56.965Z","repository":{"id":34633615,"uuid":"38584148","full_name":"NoUseFreak/docker-pdfgen","owner":"NoUseFreak","description":"Simple api wrapper for wkhtmltopdf","archived":false,"fork":false,"pushed_at":"2016-12-09T02:55:09.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T12:11:15.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/NoUseFreak.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":"2015-07-05T21:07:38.000Z","updated_at":"2017-01-14T15:06:15.000Z","dependencies_parsed_at":"2022-08-29T09:30:46.894Z","dependency_job_id":null,"html_url":"https://github.com/NoUseFreak/docker-pdfgen","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/NoUseFreak/docker-pdfgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoUseFreak%2Fdocker-pdfgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoUseFreak%2Fdocker-pdfgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoUseFreak%2Fdocker-pdfgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoUseFreak%2Fdocker-pdfgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NoUseFreak","download_url":"https://codeload.github.com/NoUseFreak/docker-pdfgen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoUseFreak%2Fdocker-pdfgen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29736978,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T02:24:00.660Z","status":"ssl_error","status_checked_at":"2026-02-23T02:22:56.087Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-11-23T17:50:26.296Z","updated_at":"2026-02-23T04:02:56.935Z","avatar_url":"https://github.com/NoUseFreak.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PDFgen\n======\n\nPDFgen is a docker application build to generate pdf documents.\nIt depends on wkhtmltopdf and has a clean API.\n\n# Install\n\nMake sure you have docker installed and run the following.\n\n```bash\n$ docker run -d -p 80:80 nousefreak/pdfgen\n```\n# Usage\n\nThe API accepts a source object containing the url of the page you want.\nYou can pass along any options via the options object. See the [reference](http://wkhtmltopdf.org/usage/wkhtmltopdf.txt) for all available options.\n\n# Examples\n\n## Generate PDF from URL\n```bash\n$ curl \\\n    -H \"Accept: application/json\" \\\n    -H \"Content-type: application/json\" \\\n    -X POST \\\n    -d '{\"source\": {\"url\": \"https://www.google.com\"},\"options\": {\"no-background\": true}}' \\\n    http://192.168.99.100:80/ \u003e example_url.pdf\n```\n\n## Generate PDF from provided HTML\n```bash\n$ curl \\\n    -H \"Accept: application/json\" \\\n    -H \"Content-type: application/json\" \\\n    -X POST \\\n    -d '{\"source\": {\"html\": \"\u003chtml\u003e\u003chead\u003e\u003ctitle\u003eHello World!\u003c/title\u003e\u003c/head\u003e\u003cbody\u003e\u003ch1\u003eHello world!\u003c/h1\u003e\u003c/body\u003e\u003c/html\u003e\"},\"options\": {\"no-background\": true}}' \\\n    http://192.168.99.100:80/ \u003e example_html.pdf\n```\n\n## Generate PDF from provided base64 encoded HTML\n```bash\n$ curl \\\n    -H \"Accept: application/json\" \\\n    -H \"Content-type: application/json\" \\\n    -X POST \\\n    -d '{\"source\": {\"base64\": \"PGh0bWw+PGhlYWQ+PHRpdGxlPkhlbGxvIFdvcmxkITwvdGl0bGU+PC9oZWFkPjxib2R5PjxoMT5IZWxsbyB3b3JsZCE8L2gxPjwvYm9keT48L2h0bWw+\"},\"options\": {\"no-background\": true}}' \\\n    http://192.168.99.100:80/ \u003e example_html.pdf\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnousefreak%2Fdocker-pdfgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnousefreak%2Fdocker-pdfgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnousefreak%2Fdocker-pdfgen/lists"}