{"id":36466480,"url":"https://github.com/luabagg/orcgen","last_synced_at":"2026-01-12T00:04:15.067Z","repository":{"id":149900854,"uuid":"582820443","full_name":"luabagg/orcgen","owner":"luabagg","description":"Web pages and HTML content conversion","archived":false,"fork":false,"pushed_at":"2025-11-22T04:00:03.000Z","size":4554,"stargazers_count":13,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-22T05:34:27.643Z","etag":null,"topics":["file-conversion","html-to-image","html-to-image-converter","html-to-pdf","html-to-pdf-converter"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/luabagg/orcgen","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/luabagg.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-28T00:40:45.000Z","updated_at":"2025-09-17T09:20:50.000Z","dependencies_parsed_at":"2024-08-13T22:25:46.386Z","dependency_job_id":"a09baa1c-c68d-4155-897a-ce7360ffd7a8","html_url":"https://github.com/luabagg/orcgen","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/luabagg/orcgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luabagg%2Forcgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luabagg%2Forcgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luabagg%2Forcgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luabagg%2Forcgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luabagg","download_url":"https://codeload.github.com/luabagg/orcgen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luabagg%2Forcgen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28328803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T22:11:01.104Z","status":"ssl_error","status_checked_at":"2026-01-11T22:10:58.990Z","response_time":60,"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":["file-conversion","html-to-image","html-to-image-converter","html-to-pdf","html-to-pdf-converter"],"created_at":"2026-01-12T00:04:11.437Z","updated_at":"2026-01-12T00:04:15.060Z","avatar_url":"https://github.com/luabagg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Orcgen\n\nOrcgen is a Go package that enables an easy-to-use conversion of web pages and HTML content to various file formats like PDF, PNG, and JPEG.\nThe underlying implementation uses the [Rod library](https://github.com/go-rod/rod) for the page conversion.\n\n## Functionalities and packages\n\nOrcgen provides the following functionalities:\n\n- Conversion of web pages and HTML content to a static file (PNG, PDF...).\n\n  - This can be done simply using the Generate function, but if you need\n  prior configuration, you can access all the webdriver functionalities.\n  - You can also use the other functions at orcgen.go, as specified in the examples page.\n\n### Package folder\n\n- FileInfo:\n    A struct to standardize the returns and file saves.\n    There's a Output function that writes the content to a output file.\n\n- Handlers:\n    The implementations of the page file save functionality (PDF / Screenshots).\n\n- Webdriver:\n    Simple wrapper over rod library.\n\n## Installation\n\nTo use Orcgen, you can install it via Go modules:\n\n```sh\n    go get github.com/luabagg/orcgen/v2\n```\n\nThen you can import it in your Go code:\n\n```go\n    import \"github.com/luabagg/orcgen/v2\"\n```\n\n## Usage Example\n\n```go\n    import \"github.com/luabagg/orcgen/v2\"\n\n    // Webpage conversion\n    orcgen.Generate(\n        \"https://www.github.com\",\n        orcgen.ScreenshotConfig{\n            Format: \"webp\",\n        },\n        \"github.webp\",\n    )\n\n    // HTML conversion\n    orcgen.Generate(\n        []byte(\"my html\"),\n        orcgen.PDFConfig{\n            Landscape:         true,\n            PrintBackground:   true,\n            PreferCSSPageSize: true,\n        },\n        \"html.pdf\",\n    )\n```\n\nThe package comes with examples that demonstrate the usage of the various functions and features provided by Orcgen. It's the way-to-go if you're trying to use this package for the first time.\n\nYou can see more in [examples_test.go](https://github.com/luabagg/orcgen/tree/main/examples_test.go) page.\n\n## Contributors\n\nThis project is an open-source project, and contributions from other developers are welcome. If you encounter any issues or have suggestions for improvement, please submit them on the project's GitHub page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluabagg%2Forcgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluabagg%2Forcgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluabagg%2Forcgen/lists"}