{"id":39077863,"url":"https://github.com/tiechui1994/gopdf","last_synced_at":"2026-01-17T18:27:58.660Z","repository":{"id":39865353,"uuid":"158054670","full_name":"tiechui1994/gopdf","owner":"tiechui1994","description":"pdf document generation library","archived":false,"fork":false,"pushed_at":"2023-03-07T01:27:17.000Z","size":33288,"stargazers_count":118,"open_issues_count":14,"forks_count":39,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-18T18:45:16.663Z","etag":null,"topics":["golang","gopdf","markdown","markdown-parser","pdf"],"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/tiechui1994.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":"2018-11-18T05:58:05.000Z","updated_at":"2024-06-11T02:28:30.000Z","dependencies_parsed_at":"2024-06-18T18:28:47.440Z","dependency_job_id":"a6645082-c5fb-460b-baab-59ccf6f86dbf","html_url":"https://github.com/tiechui1994/gopdf","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/tiechui1994/gopdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiechui1994%2Fgopdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiechui1994%2Fgopdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiechui1994%2Fgopdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiechui1994%2Fgopdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiechui1994","download_url":"https://codeload.github.com/tiechui1994/gopdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiechui1994%2Fgopdf/sbom","scorecard":{"id":884885,"data":{"date":"2025-08-11","repo":{"name":"github.com/tiechui1994/gopdf","commit":"4b11a58b280a35b0194923b3c3d47f354bae1a4e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":1,"reason":"Found 1/8 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2023-1572 / GHSA-qgc7-mgm3-q253","Warn: Project is vulnerable to: GO-2023-1990 / GHSA-j3p8-6mrq-6g7h","Warn: Project is vulnerable to: GO-2023-1989 / GHSA-x92r-3vfx-4cv3","Warn: Project is vulnerable to: GO-2024-2937 / GHSA-9phm-fm57-rhg8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T09:36:43.090Z","repository_id":39865353,"created_at":"2025-08-24T09:36:43.090Z","updated_at":"2025-08-24T09:36:43.090Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28515513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T17:57:59.192Z","status":"ssl_error","status_checked_at":"2026-01-17T17:57:52.527Z","response_time":85,"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":["golang","gopdf","markdown","markdown-parser","pdf"],"created_at":"2026-01-17T18:27:58.572Z","updated_at":"2026-01-17T18:27:58.638Z","avatar_url":"https://github.com/tiechui1994.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## gopdf\n\n![GitHub](https://img.shields.io/github/v/release/tiechui1994/gopdf)\n![GitHub](https://img.shields.io/github/commit-activity/w/tiechui1994/gopdf)\n![GitHub](https://img.shields.io/github/license/tiechui1994/gopdf)\n![GitHub issues](https://img.shields.io/github/issues/tiechui1994/gopdf)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/tiechui1994/gopdf)\n\n## 项目介绍\n\ngopdf 是一个生成 `PDF` 文档的 `Golang` 库. 主要有以下的特点:\n\n- 支持 Unicode 字符 (包括中文, 日语, 朝鲜语, 等等.)\n- 文档内容的自动定位与分页, 减少用户的工作量.\n- 支持图片插入, 支持多种图片格式, `PNG`, `BMP`, `JPEG`, `WEBP`, `TIFF`\n- 支持文档压缩\n- 复杂表格组件, 块文本等\n- `markdown` 文本可以直接转换成 `pdf`\n- 手动实现了 `markdown` 解析库, 可以提供其他 `markdown` 开发\n\n## 安装\n\n```\ngo get -u github.com/tiechui1994/gopdf\n```\n\n## 案例展示: \n\n![image](./example/pictures/example.png)\n\n代码参考 `example/complex_report_test`\n\n![image](./example/pictures/table.png)\n\n代码参考 `example/simple_table_test`\n\n![image](./example/pictures/mutil-table.png)\n\n代码参考 `example/mutil_table_test`\n\n\n## 未来开发计划\n\n1. ~~准备尝试开发 `Markdown` 的语法解析库, 然后通过解析库将 `markdown` 转换成 pdf, 可以支持定义一些颜色风格. 目前正\n在研究 `marked.js` 前段库, 寻找灵感.~~\n\n2. 优化 `Markedown` 的解析库, 调整 `markdown` 转 pdf 的参数, 使得 pdf 页面更美观.\n\n3. 开发更加通俗易用的组件, 比如 `paragraph`, `tablecell` 等.\n\n4. 使用 node 相关的技术进行桥接操作.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiechui1994%2Fgopdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiechui1994%2Fgopdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiechui1994%2Fgopdf/lists"}