返回 Skill 列表
extension
分类: 开发与工程无需 API Key

document-processing-docx

通过使用如docx或mammoth.js这样的库,以编程方式处理、解析、创建和操作Microsoft Word (.docx)文档,用于文档生成和数据提取。适用于从模板生成Word文档、从.docx文件中提取文本和格式、创建报告和发票、解析简历和表格、将Word转换为HTML、创建邮件合并文档或自动化文档工作流程等情况。

person作者: jakexiaohubgithub

Document Processing - DOCX Files

When to use this skill

  • Generating Word documents from templates
  • Extracting text content from .docx files
  • Creating automated reports and invoices
  • Parsing resumes and job applications
  • Converting Word documents to HTML or Markdown
  • Creating mail merge documents programmatically
  • Extracting tables and data from Word files
  • Automating document generation workflows
  • Creating contracts or agreements from templates
  • Processing bulk document uploads
  • Extracting metadata from Word documents
  • Building document management systems

When to use this skill

  • Creating, editing Word documents programmatically.
  • When working on related tasks or features
  • During development that requires this expertise

Use when: Creating, editing Word documents programmatically.

Example

```typescript import { Document, Packer, Paragraph } from 'docx';

const doc = new Document({ sections: [{ children: [new Paragraph("Hello World")] }] }); ```

Resources