docx-to-pdf

docx-to-pdf is a skill for Claude Code, Codex from fabioc-aloha/Alex_Skill_Mall. It costs 36 tokens per session (489 once invoked), scanned A, original, MIT.

A converter that turns Word .docx files into PDF files while preserving common structure and formatting, including headings, paragraphs, lists, tables, and inline images.

In plain words
What is it for?
Export Word reports, specifications, and other documents as PDFs, then review the rendered result for layout problems.
Why use it?
It provides a portable, read-only version of a Word document without requiring the reader to open it in Word.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python plugins/docx-to-pdf/scripts/venv-run.py plugins/docx-to-pdf/scripts/docx-to-pdf.py "<input.docx>" -o "<output.pdf>".

Good fit Export Word reports, specifications, and other documents as PDFs, then review the rendered result for layout problems.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/fabioc-aloha/Alex_Skill_Mall
agentmods
npx agentmods add skills/fabioc-aloha/alex_skill_mall/docx-to-pdf

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docx-to-pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/docx-to-pdf/github.svg)](https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/docx-to-pdf)
Your own site
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/docx-to-pdf"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/docx-to-pdf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docx-to-pdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/docx-to-pdf"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/docx-to-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 489 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00489
Opus 5 $0.00018 $0.00244
Sonnet 5 $0.00007 $0.00098
Haiku 4.5 $0.00004 $0.00049

Measured 7d ago against content hash 8ee9d6eafea5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

docx-to-pdf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/converters/docx-to-pdf/skills/docx-to-pdf/SKILL.md · 57 lines

What it actually says

Convert Word Document to PDF

Convert .docx files to PDF with preserved structure and formatting.

When to Use

  • User provides a .docx file and wants a PDF version
  • User says "convert to PDF", "export as PDF", "make a PDF from this Word doc"
  • User needs a portable read-only version of a Word document

How to Respond

Step 1: Validate the input file

Confirm the file exists and is a .docx (ZIP-based OOXML) file. Legacy .doc (OLE2 binary) files are not supported — ask the user to re-save as .docx from Word first.

Step 2: Run the converter

python plugins/docx-to-pdf/scripts/venv-run.py plugins/docx-to-pdf/scripts/docx-to-pdf.py "<input.docx>" -o "<output.pdf>"

If -o is omitted, the PDF is written alongside the input file with the same stem (e.g., report.docxreport.pdf).

Step 3: Review the output

Open the generated PDF and confirm the content looks correct.

Supported Content

Word Element PDF Output
Title / Heading 1-4 Bold headings with scaled font sizes
Normal paragraph Wrapped body text
Bold / Italic Inline formatting preserved
Bullet list • prefixed items
Numbered list Numbered items
Table Grid table with borders
Inline image Embedded and scaled to fit page

Limitations

  • This is a best-effort content export, not a pixel-perfect Word renderer
  • Complex layouts (columns, text boxes, SmartArt) are not supported
  • Headers/footers from the Word document are not transferred
  • Page breaks are respected but section-level formatting is simplified
  • Legacy .doc files must be converted to .docx first
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 57 lines · 36 tokens per session scan A 8ee9d6eafea5

Subscribe to this mod's changes

docx-to-pdf is a skill published in the GitHub repository fabioc-aloha/Alex_Skill_Mall (4 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 489 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.