📦 deps(tsl): sync tsl-playbook from 9dbd156d

Source-Commit: 9dbd156d0e
This commit is contained in:
ci[bot]
2026-07-07 08:44:07 +00:00
commit a2d9174549
524 changed files with 393502 additions and 0 deletions
@@ -0,0 +1,48 @@
# 文档处理 / 其他
## `createCaptchaImage(word, _type, param)`
用以创建一个验证码图片。
| 参数 | 类型 | 说明 |
| ------- | ------ | --------------------------------------------------------------------------- |
| `word` | string | 用以生成图像的字符串,最大128个字节,最小1个字节的ASCII字符串,不能使用汉字 |
| `_type` | string | 图像格式,’jpg,gif,png,bmp |
| `param` | int | 图像参数,如不指定本参数,则使用下表中的缺省值 |
返回:string
## `excelTemplate(data, template, file_name)`
执行与Word模板类似的Excel模板。
| 参数 | 类型 | 说明 |
| ----------- | ------ | ---------------------------------------------- |
| `data` | string | 设置系统参数”data”的数据,可以在模板函数里引用 |
| `template` | string | 模板的文件名 |
| `file_name` | string | 可省略,如果无该参数,则生成的内容不保存。 |
返回:bool
## `fileToPdf(doc_name, pdf_name)`
把WORD文档转换成为PDF文件。需要安装Word和Acrobat Distiller。
| 参数 | 类型 | 说明 |
| ---------- | ------ | ---- |
| `doc_name` | string | |
| `pdf_name` | string | |
返回:bool
## `wordTemplate(data, template, file_name)`
执行Word模板。
| 参数 | 类型 | 说明 |
| ----------- | ------ | ---------------------------------------------- |
| `data` | string | 设置系统参数”data”的数据,可以在模板函数里引用 |
| `template` | string | 模板的文件名 |
| `file_name` | string | 可省略,如果无该参数,则生成的内容不保存。 |
返回:bool