{"id":10610112,"url":"https://github.com/thecodingmachine/gotenberg-go-client","last_synced_at":"2025-12-30T16:54:51.841Z","repository":{"id":35003188,"uuid":"175825270","full_name":"thecodingmachine/gotenberg-go-client","owner":"thecodingmachine","description":"Go client for the Gotenberg API","archived":true,"fork":false,"pushed_at":"2024-04-13T23:30:43.000Z","size":450,"stargazers_count":57,"open_issues_count":11,"forks_count":33,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-01-04T00:51:29.922Z","etag":null,"topics":["api","excel","go","gotenberg","html","markdown","pdf","pdf-converter","powerpoint","word"],"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/thecodingmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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-03-15T13:27:35.000Z","updated_at":"2024-10-10T08:24:47.000Z","dependencies_parsed_at":"2024-06-18T16:49:23.953Z","dependency_job_id":"fdbcc19f-58dc-4bed-a908-3c020771d837","html_url":"https://github.com/thecodingmachine/gotenberg-go-client","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fgotenberg-go-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fgotenberg-go-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fgotenberg-go-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fgotenberg-go-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/gotenberg-go-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232721709,"owners_count":18566455,"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":["api","excel","go","gotenberg","html","markdown","pdf","pdf-converter","powerpoint","word"],"created_at":"2024-06-02T09:27:28.164Z","updated_at":"2025-12-15T12:15:08.865Z","avatar_url":"https://github.com/thecodingmachine.png","language":"Go","readme":"**⚠️ Not working for Gotenberg \u003e= 7 ⚠️** \n\n# Gotenberg Go client\n\nA simple Go client for interacting with a Gotenberg API.\n\n## Install\n\n```bash\n$ go get -u github.com/thecodingmachine/gotenberg-go-client/v7\n```\n\n## Usage\n\n```golang\nimport (\n    \"time\"\n    \"net/http\"\n\n    \"github.com/thecodingmachine/gotenberg-go-client/v7\"\n)\n\n// create the client.\nclient := \u0026gotenberg.Client{Hostname: \"http://localhost:3000\"}\n// ... or use your own *http.Client.\nhttpClient := \u0026http.Client{\n    Timeout: time.Duration(5) * time.Second,\n}\nclient := \u0026gotenberg.Client{Hostname: \"http://localhost:3000\", HTTPClient: httpClient}\n\n// prepare the files required for your conversion.\n\n// from a path.\nindex, _ := gotenberg.NewDocumentFromPath(\"index.html\", \"/path/to/file\")\n// ... or from a string.\nindex, _ := gotenberg.NewDocumentFromString(\"index.html\", \"\u003chtml\u003eFoo\u003c/html\u003e\")\n// ... or from bytes.\nindex, _ := gotenberg.NewDocumentFromBytes(\"index.html\", []byte(\"\u003chtml\u003eFoo\u003c/html\u003e\"))\n\nheader, _ := gotenberg.NewDocumentFromPath(\"header.html\", \"/path/to/file\")\nfooter, _ := gotenberg.NewDocumentFromPath(\"footer.html\", \"/path/to/file\")\nstyle, _ := gotenberg.NewDocumentFromPath(\"style.css\", \"/path/to/file\")\nimg, _ := gotenberg.NewDocumentFromPath(\"img.png\", \"/path/to/file\")\n\nreq := gotenberg.NewHTMLRequest(index)\nreq.Header(header)\nreq.Footer(footer)\nreq.Assets(style, img)\nreq.PaperSize(gotenberg.A4)\nreq.Margins(gotenberg.NoMargins)\nreq.Scale(0.75)\n\n// store method allows you to... store the resulting PDF in a particular destination.\nclient.Store(req, \"path/you/want/the/pdf/to/be/stored.pdf\")\n\n// if you wish to redirect the response directly to the browser, you may also use:\nresp, _ := client.Post(req)\n```\n\nFor more complete usages, head to the [documentation](https://gotenberg.dev/).\n\n## Badges\n\n[![Travis CI](https://travis-ci.org/thecodingmachine/gotenberg-go-client.svg?branch=master)](https://travis-ci.org/thecodingmachine/gotenberg-go-client)\n[![GoDoc](https://godoc.org/github.com/thecodingmachine/gotenberg-go-client?status.svg)](https://godoc.org/github.com/thecodingmachine/gotenberg-go-client)\n[![Go Report Card](https://goreportcard.com/badge/github.com/thecodingmachine/gotenberg-go-client)](https://goreportcard.com/report/thecodingmachine/gotenberg-go-client)\n","funding_links":[],"categories":["Clients"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fgotenberg-go-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fgotenberg-go-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fgotenberg-go-client/lists"}