Skip to content
Back to skills

Docx To Pdf

ASecurity

Convert Word documents (.docx) to PDF. Preserves headings, paragraphs, lists, tables, and inline images with best-effort layout fidelity.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agentspythonbash

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add fabioc-aloha/Alex_Skill_Mall --skill docx-to-pdf --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docx To Pdf?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docx To Pdf
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fabioc-aloha-docx-to-pdf/badge)](https://www.skillsdirectory.com/skills/fabioc-aloha-docx-to-pdf)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docx-to-pdf
description: "Convert Word documents (.docx) to PDF. Preserves headings, paragraphs, lists, tables, and inline images with best-effort layout fidelity."
lastReviewed: 2026-05-03
---

# 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

```bash
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.docx` → `report.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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.