Install
$ agentstack add skill-phanghonghao-thu-awesome-skills-word2pdf ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Word to PDF Converter
Convert Word documents (.doc / .docx) to PDF with automatic format detection.
When to Use
- User mentions: "word2pdf", "Word转PDF", "Word to PDF", "doc转PDF", "docx转PDF"
- Need to convert a Word document to PDF for sharing or submission
- Need to check whether a file is .doc or .docx before converting
How It Works
- Format Detection — reads first 8 bytes to identify:
D0 CF 11 E0 ...→.doc(OLE2 Compound Binary Format)50 4B 03 04→.docx(ZIP / Office Open XML)
- Conversion — tries in order:
- Microsoft Word COM automation (
win32com) — best fidelity for both formats - LibreOffice headless (
soffice --headless) — fallback for both formats
Usage
python "C:/Users/20174/.claude/skills/word2pdf/word2pdf.py" [output.pdf]
Arguments
| Argument | Required | Description | |----------|----------|-------------| | input | Yes | Input Word file path (.doc or .docx) | | output | No | Output PDF path (default: same name with .pdf extension) |
Examples
# Convert .docx (auto-detect format, output = input_name.pdf)
python "C:/Users/20174/.claude/skills/word2pdf/word2pdf.py" "report.docx"
# Convert .doc (legacy binary format)
python "C:/Users/20174/.claude/skills/word2pdf/word2pdf.py" "old_document.doc"
# Convert with custom output path
python "C:/Users/20174/.claude/skills/word2pdf/word2pdf.py" "report.docx" "output.pdf"
Dependencies
- Primary: Microsoft Word (installed) +
pywin32
``bash python -m pip install pywin32 ``
- Fallback: LibreOffice (any recent version)
Workflow
- Validate input file exists
- Detect format via magic bytes (report
.docor.docx) - Try Microsoft Word COM conversion
- If unavailable, try LibreOffice headless
- Report output path, file size, and page count
Rules
- Always use
PYTHONIOENCODING=utf-8on Windows - Report detected format to user before converting
- Report any conversion warnings or errors
- If neither Word nor LibreOffice is available, inform the user to install one
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: phanghonghao
- Source: phanghonghao/THU-Awesome-Skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.