Files
playbook/docs/tsl/codegen/dotnet/document/misc.md
T
csh b6160676b4 ♻️ refactor(tsl): rebuild codegen taxonomy
Move generated builtin and dotnet function docs into the upgraded taxonomy, remove legacy route pages, and regenerate function_index.tsv from markdown headings.
2026-07-07 16:36:08 +08:00

49 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 文档处理 / 其他
### `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