{"id":37028617,"url":"https://github.com/draco1023/poi-tl-ext","last_synced_at":"2026-01-14T03:25:32.250Z","repository":{"id":39655778,"uuid":"355735242","full_name":"draco1023/poi-tl-ext","owner":"draco1023","description":"Extensions for poi-tl","archived":false,"fork":false,"pushed_at":"2025-06-10T14:35:32.000Z","size":522,"stargazers_count":243,"open_issues_count":14,"forks_count":66,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-10T15:27:14.173Z","etag":null,"topics":["docx","html","poi","poi-tl","word"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/draco1023.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}},"created_at":"2021-04-08T02:03:01.000Z","updated_at":"2025-06-10T14:44:05.000Z","dependencies_parsed_at":"2024-05-23T05:23:03.250Z","dependency_job_id":"87d7d388-66da-43f3-b865-dfee623612dc","html_url":"https://github.com/draco1023/poi-tl-ext","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/draco1023/poi-tl-ext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/draco1023%2Fpoi-tl-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/draco1023%2Fpoi-tl-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/draco1023%2Fpoi-tl-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/draco1023%2Fpoi-tl-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/draco1023","download_url":"https://codeload.github.com/draco1023/poi-tl-ext/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/draco1023%2Fpoi-tl-ext/sbom","scorecard":{"id":354791,"data":{"date":"2025-08-11","repo":{"name":"github.com/draco1023/poi-tl-ext","commit":"ebfd4913b6bcdeefc2c2324f4c31f005af825f52"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Maintained","score":5,"reason":"4 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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"}}]},"last_synced_at":"2025-08-18T09:15:50.460Z","repository_id":39655778,"created_at":"2025-08-18T09:15:50.460Z","updated_at":"2025-08-18T09:15:50.460Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["docx","html","poi","poi-tl","word"],"created_at":"2026-01-14T03:25:31.774Z","updated_at":"2026-01-14T03:25:32.242Z","avatar_url":"https://github.com/draco1023.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# poi-tl-ext\n![GitHub](https://img.shields.io/github/license/draco1023/poi-tl-ext) ![JDK](https://img.shields.io/badge/jdk-1.8-blue)\n\n# Maven\n\npoi 4.x poi-tl 1.11 以前的版本\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.draco1023\u003c/groupId\u003e\n    \u003cartifactId\u003epoi-tl-ext\u003c/artifactId\u003e\n    \u003cversion\u003e0.4.24\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\npoi 5.x poi-tl 1.11.0+\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.draco1023\u003c/groupId\u003e\n    \u003cartifactId\u003epoi-tl-ext\u003c/artifactId\u003e\n    \u003cversion\u003e0.4.24-poi5\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n# 扩展功能\n\n在 [poi-tl](https://github.com/Sayi/poi-tl) 的基础上扩展了如下功能：\n\n- 支持渲染`HTML`字符串，插件`HtmlRenderPolicy`的使用方法如下（也可参考[文档](http://deepoove.com/poi-tl/#_%E4%BD%BF%E7%94%A8%E6%8F%92%E4%BB%B6)）\n\n  ```java\n  HtmlRenderPolicy htmlRenderPolicy = new HtmlRenderPolicy();\n  Configure configure = Configure.builder()\n          .bind(\"key\", htmlRenderPolicy)\n          .build();\n  Map\u003cString, Object\u003e data = new HashMap\u003c\u003e();\n  data.put(\"key\", \"\u003cp\u003eHello \u003cb\u003eworld\u003c/b\u003e!\u003c/p\u003e\");\n  XWPFTemplate.compile(\"input.docx\", configure).render(data).writeToFile(\"output.docx\");\n  ```\n  \n  `HtmlRenderPolicy`可以通过`HtmlRenderConfig`进行如下设置：\n  - `globalFont` 全局默认字体（用于归一化处理，而不是用于样式兜底）\n  - `globalFontSize` 全局默认字号（用于归一化处理，而不是用于样式兜底）\n  - `showDefaultTableBorderInTableCell` 是否显示嵌套表格的边框（`poi`生成嵌套表格时默认不显示边框，见[#12](https://github.com/draco1023/poi-tl-ext/issues/12)）\n  - `numberingIndent` 多级列表项缩进长度，默认值360\n  - `numberingHanging` 列表项悬挂长度，默认值360，CSS样式`list-style-position`为`inside`时该参数无效\n  - `numberingSpacing` 列表编号与内容之间的间隔类型，`STLevelSuffix.NOTHING`/`STLevelSuffix.SPACE`/`STLevelSuffix.TAB`\n  \n  自定义`\u003clatex\u003e`标签，允许渲染嵌入在`HTML`中的`LaTeX`，字符串格式可参考[文档](https://www2.ph.ed.ac.uk/snuggletex/documentation/supported-latex.html)。\n  \n  _目前实现了富文本编辑器可实现的大部分效果，后续继续改进..._\n\n- 支持渲染`MathML`字符串，插件类为`MathMLRenderPolicy`\n- 支持渲染`LaTeX`字符串，插件类为`LaTeXRenderPolicy`\n\n## 支持我\n如果您觉得这个插件节省了您的时间和精力，或者解决了您的难题，可以考虑支持一下我的工作，感谢！ ⚡⚡⚡\n\n![wechat_sp](https://pub-1085551b511e4719a277177fe3c8f95b.r2.dev/wechat_sp.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdraco1023%2Fpoi-tl-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdraco1023%2Fpoi-tl-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdraco1023%2Fpoi-tl-ext/lists"}