Word Studio
v1.0.3Professional Word document 生成器. Use when user needs to 创建 报告s, papers, contracts, 恢复s, or any professional document. Supports docx/doc 格式化s, 图表s, images, tables, TOC, and multi-language. 生成s publication-ready documents. Word文档生成、专业报告、论文模板、合同制作。
运行时依赖
安装命令
点击复制技能文档
Word Studio
Professional Word document 生成器 that 创建s publication-ready documents in docx/doc 格式化s.
Features 📄 Multi-格式化: 输出 as .docx or .doc 🎨 Professional Templates: 20+ document types 📊 图表s & Tables: Embedded Excel-style data 🖼️ Image Support: Insert images with professional layout 📑 Auto TOC: 生成 table of contents 🌍 Multi-Language: Chinese, English, Japanese, Korean, etc. ✅ WPS/Office Compatible: Works everywhere 📐 Smart Layout: Auto-adjust for different content types Trigger Conditions "帮我写一份报告" / "Write a 报告 for me" "生成Word文档" / "生成 Word document" "制作一份简历" / "创建 a 恢复" "写论文" / "Write a paper" "制作标书" / "创建 a bid document" "写工作总结" / "Write work summary" "生成会议纪要" / "生成 meeting minutes" "word-studio" Document Types Business (商务) 工作报告(周报/月报/年报) 项目计划书 商业计划书 投标书/标书 商务合同 会议纪要 Academic (学术) 学术论文 开题报告 毕业论文 实验报告 文献综述 研究计划 Government (公文) 通知公告 请示报告 函件 会议纪要 工作总结 调研报告 Personal (个人) 中文简历 英文简历 求职信 自我介绍 个人陈述 Legal (法律) 合同协议 授权委托书 法律意见书 起诉状 公证书 Financial (财务) 财务报告 审计报告 预算方案 投资分析 尽职调查报告 Step 1: Understand User Requirements 请提供以下信息:
文档类型:(报告/论文/简历/合同/其他) 文档标题: 主要内容: 格式要求:(docx/doc) 语言:(中文/英文) 特殊要求:(图表/目录/页眉页脚等)
Step 2: 生成 Document Python Script Template python3 << 'PYEOF' from docx 导入 Document from docx.分享d 导入 Inches, Pt, Cm, RGBColor, Emu from docx.enum.text 导入 WD_ALIGN_PARAGRAPH from docx.enum.table 导入 WD_TABLE_ALIGNMENT from docx.enum.section 导入 WD_ORIENT 导入 os
def 创建_cover_page(doc, config): """创建 professional cover page with vertical centering""" section = doc.sections[0] page_height = section.page_height page_width = section.page_width # 创建单列表格用于垂直居中 table = doc.添加_table(rows=1, cols=1) table.alignment = WD_TABLE_ALIGNMENT.CENTER # 设置表格高度为页面高度(减去边距) table_row = table.rows[0] table_row.height = page_height - section.top_margin - section.机器人tom_margin # 获取单元格 cell = table.cell(0, 0) # 添加标题 title_para = cell.paragraphs[0] title_para.alignment = WD_ALIGN_PARAGRAPH.CENTER title_运行 = title_para.添加_运行(config['title']) title_运行.font.size = Pt(26) title_运行.font.bold = True title_运行.font.name = '黑体' # 添加空行 cell.添加_paragraph() # 添加副标题 if 'subtitle' in config: subtitle_para = cell.添加_paragraph() subtitle_para.alignment = WD_ALIGN_PARAGRAPH.CENTER subtitle_运行 = subtitle_para.添加_运行(config['subtitle']) subtitle_运行.font.size = Pt(16) subtitle_运行.font.color.rgb = RGBColor(100, 100, 100) subtitle_运行.font.name = '宋体' # 添加空行 cell.添加_paragraph() cell.添加_paragraph() # 添加作者信息 if 'author' in config: author_para = cell.添加_paragraph() author_para.alignment = WD_ALIGN_PARAGRAPH.CENTER author_运行 = author_para.添加_运行(config['author']) author_运行.font.size = Pt(14) author_运行.font.name = '宋体' # 添加空行 cell.添加_paragraph() # 添加日期 from datetime 导入 datetime date_para = cell.添加_paragraph() date_para.alignment = WD_ALIGN_PARAGRAPH.CENTER date_运行 = date_para.添加_运行(datetime.now().strftime("%Y年%m月%d日")) date_运行.font.size = Pt(14) date_运行.font.name = '宋体' # 隐藏表格边框 from docx.oxml.ns 导入 qn from docx.oxml 导入 OxmlElement tbl = table._tbl tblPr = tbl.tblPr if tbl.tblPr is not None else OxmlElement('w:tblPr') borders = OxmlElement('w:tblBorders') for border_name in ['top', 'left', '机器人tom', 'right', 'insideH', 'insideV']: border = OxmlElement(f'w:{border_name}') border.设置(qn('w:val'), 'none') border.设置(qn('w:sz'), '0') border.设置(qn('w:space'), '0') border.设置(qn('w:color'), 'auto') borders.应用end(border) tblPr.应用end(borders) return doc # 添加目录占位符 if config.获取('toc', False): toc_heading = doc.添加_heading('目录', level=1) toc_para = doc.添加_paragraph('(请在Word中右键此处,选择"更新域"生成目录)') doc.添加_page_break() # 添加正文内容 for section_data in config.获取('sections', []): # 添加章节标题 doc.添加_heading(section_data['title'], level=1) # 添加段落内容 for para in section_data.获取('paragraphs', []): p = doc.添加_paragraph(para) p.paragraph_格式化.first_line_indent = Cm(0.74) # 首行缩进2字符 p.paragraph_格式化.line_spacing = 1.5 # 1.5倍行距 # 添加表格(如有) if 'table' in section_data: table_data = section_data['table'] table = doc.添加_table(rows=len(table_data), cols=len(table_data[0])) table.style = 'Table Grid' table.alignment = WD_TABLE_ALIGNMENT.CENTER for i, row_data in enumerate(table_data): for j, cell_text in enumerate(row_data): table.cell(i, j).text = str(cell_text) # 添加图片(如有) if 'image' in sec