AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Word2pdf

skill-phanghonghao-thu-awesome-skills-word2pdf · by phanghonghao

Convert Word (.doc / .docx) to PDF. Auto-detects binary .doc (OLE2) vs .docx (Office Open XML) via magic bytes, then converts using Microsoft Word COM or LibreOffice headless. Use when user mentions "word2pdf", "Word转PDF", "Word to PDF", "doc转PDF", "docx转PDF", or needs to convert a Word document to PDF.

No reviews yet
0 installs
44 views
0.0% view→install

Install

$ agentstack add skill-phanghonghao-thu-awesome-skills-word2pdf

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-phanghonghao-thu-awesome-skills-word2pdf)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Word2pdf? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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

  1. 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)
  1. 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

  1. Validate input file exists
  2. Detect format via magic bytes (report .doc or .docx)
  3. Try Microsoft Word COM conversion
  4. If unavailable, try LibreOffice headless
  5. Report output path, file size, and page count

Rules

  1. Always use PYTHONIOENCODING=utf-8 on Windows
  2. Report detected format to user before converting
  3. Report any conversion warnings or errors
  4. 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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.