Initial certificate system
This commit is contained in:
25
certificate-template-lab/README.md
Normal file
25
certificate-template-lab/README.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# 结业证书模板调试模块
|
||||
|
||||
这个目录是证书模板的独立验证模块,暂时不接主系统数据库。
|
||||
|
||||
## 启动
|
||||
|
||||
在项目根目录执行:
|
||||
|
||||
```powershell
|
||||
$py = "C:\Users\nelso\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe"
|
||||
& $py -m http.server 8020 -d .\certificate-template-lab
|
||||
```
|
||||
|
||||
然后访问:
|
||||
|
||||
```text
|
||||
http://127.0.0.1:8020
|
||||
```
|
||||
|
||||
## 当前用途
|
||||
|
||||
- 以 `assets/original.jpg` 作为证书底图。
|
||||
- 擦除可变文字区域并重新绘制学员、课程、日期、单位、证书编号等信息。
|
||||
- 支持下载 PNG,用于先确认视觉效果。
|
||||
- 后续确认版式后,再把这套渲染参数迁移到主系统的 PDF/图片生成流程。
|
||||
Reference in New Issue
Block a user