{"id":15012816,"url":"https://github.com/buivuanh/pdf-export","last_synced_at":"2025-07-19T11:34:45.995Z","repository":{"id":251182577,"uuid":"835035175","full_name":"buivuanh/pdf-export","owner":"buivuanh","description":"Export PDF using playwright and go template","archived":false,"fork":false,"pushed_at":"2024-08-07T07:46:24.000Z","size":1096,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T03:54:20.567Z","etag":null,"topics":["gotemplate","pdf-export","playwright","playwright-go"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buivuanh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-07-29T03:03:09.000Z","updated_at":"2024-08-07T07:46:27.000Z","dependencies_parsed_at":"2025-04-12T03:31:58.687Z","dependency_job_id":"3c29eb3a-3234-4ca4-bf76-39615fbe6e45","html_url":"https://github.com/buivuanh/pdf-export","commit_stats":null,"previous_names":["buivuanh/pdf-export"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/buivuanh/pdf-export","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buivuanh%2Fpdf-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buivuanh%2Fpdf-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buivuanh%2Fpdf-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buivuanh%2Fpdf-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buivuanh","download_url":"https://codeload.github.com/buivuanh/pdf-export/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buivuanh%2Fpdf-export/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265926963,"owners_count":23850886,"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":["gotemplate","pdf-export","playwright","playwright-go"],"created_at":"2024-09-24T19:43:15.730Z","updated_at":"2025-07-19T11:34:45.956Z","avatar_url":"https://github.com/buivuanh.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdf-export\n\n## Structure\n\n`/html`: html, template, css, json data files.\n\n`output`: contain output pdf files.\n\n`slide`: slide.\n\n`main.go`: logic code.\n\n## Quick start\n\nBuild binary:\n\n`go build`\n\n### Render static html:\n\n```\n./pdf-export e -p=html -t=static_data.html\n```\n\n`-p`: workdirectory\n\n`-t`: main html file with a path is workdirectory/main.html, eg: html/static_data.html\n\n\n\n### Render html with given json file:\n\n```\n./pdf-export e -p=html -t=template.html -d=data.json\n```\n\n`-p`: work directory\n\n`-t`: main html file with a path is workdirectory/main.html, eg: html/template.html\n\n`-d`:  json file with a path is workdirectory/data.json, eg: html/data.json.html\n\nTo add images or any file into html/css, you can:\n- Inline file's data, e.g:  ```background: url('data:image/svg+xml;utf8,%3Csvg%20width%3D%22260%2``` \n- Or put into `/html` directory, a static file server will run at port 8181 when u run `./pdf-export`. E.g: `http://localhost:8181/logo.svg`\n\n## Run Slide local\n\n```shell\ngo get -u golang.org/x/tools/present\n\npresent\n```\n\nOpen http://127.0.0.1:3999 in chrome. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuivuanh%2Fpdf-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuivuanh%2Fpdf-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuivuanh%2Fpdf-export/lists"}