diff --git a/tools/tool_md2docx/1.0.5/DOCX.tool b/tools/tool_md2docx/1.0.5/DOCX.tool new file mode 100644 index 0000000..fd7925b Binary files /dev/null and b/tools/tool_md2docx/1.0.5/DOCX.tool differ diff --git a/tools/tool_md2docx/README.md b/tools/tool_md2docx/README.md index 4ab4e75..4fba4d9 100644 --- a/tools/tool_md2docx/README.md +++ b/tools/tool_md2docx/README.md @@ -27,7 +27,7 @@ Kodbox 是一个开源的在线文件管理器,提供了方便的文件浏览 在使用此工具之前,需要先安装所需的依赖包: ```bash -pip install requests python-docx +pip install requests python-docx Pillow ``` ### 配置参数 @@ -48,9 +48,10 @@ MAXKB_SANDBOX_PYTHON_ALLOW_SUBPROCESS=1 | `password` | 字符串 | Kodbox 密码 | `` | ### 输入参数 -| 参数名称 | 参数类型 | 参数说明 | 默认值 | -| -------- | -------- | -------- | ------ | -| `content` | 字符串 | Markdown 文本| | -| `file_name` | 字符串 | DOCX 文件名 | | -| `base_image_url` | 字符串 | MaxKB 知识库中图片地址前缀 | `https:///admin/` | +| 参数名称 | 参数类型 | 参数说明 | 默认值 | +|------------------|------|--------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `content` | 字符串 | Markdown 文本 | | +| `file_name` | 字符串 | DOCX 文件名 | | +| `base_image_url` | 字符串 | MaxKB 知识库中图片地址前缀 | `https:///admin/` | +| `format` | 字典 | 指定正文及表格(字体、字号、行距、首行缩进、对齐方式)、页边距、图片行距 | `{"fontName":"宋体","fontSize":"12","lineSpacing":"1.5","firstLineIndent":"2","alignment":"left","tableFontName":"宋体","tableFontSize":"12","tableFirstLineIndent":"2","tableAlignment":"center","tableLineSpacing":"1.0","topSection":"2.5","bottomSection":"2","leftSection":"2","rightSection":"2","imageLineSpacing":"单倍行距"}` |