docx2pdf Skill

SkillFiles & storage

Converts Word documents (.docx) to PDF, supporting both single-file and batch conversion of entire folders. Use when the user mentions Word to PDF or docx to PDF conversion.

Use docx2pdf Skill in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add docx2pdf Skill and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the docx2pdf Skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

docx2pdf SkillStart free

What this skill tells your AI

The instructions your AI receives, as published by coderwanfeng/python-office in skills/word/docx2pdf/SKILL.md and read by ahel’s review.

将 Word 转换为 PDF

功能描述

将 Word 文档(.docx)转换为 PDF 格式,支持单个文件或整个文件夹批量转换。

所属分类

office/skills/word/docx2pdf/

调用方式

from skills.word import docx2pdf

# 单个文件
docx2pdf(path='./test.docx', output_path='./output/')

# 批量转换(path 传入文件夹)
docx2pdf(path='./word_files/', output_path='./pdfs/')

参数说明

参数类型必填默认值说明
pathstr是-Word 文件位置。支持批量处理:填写文件夹位置
output_pathstr否None转换后的输出位置。如果不存在会自动创建

返回值

None

使用示例

from skills.word import docx2pdf
docx2pdf(path='./report.docx', output_path='./output/')

原始函数

office.api.word.docx2pdf

Signals

GitHub stars
1k
Forks
303
Last commit
Aug 2026
Advanced
Item type
skill
Key
docx2pdf
Source
github.com/coderwanfeng/python-office