Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/document/misc.md
T
csh e1f7ce052c feat(skills): add tsl api reference skill
Bundle the TSL API index and markdown references under the skill, route TSL docs to use it, and update the codegen index generator to maintain the bundled data.
2026-07-07 16:36:15 +08:00

2.0 KiB
Raw Blame History

文档处理 / 其他

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