Skip to content
Back to skills

Docx To Pdf

ASecurity

Convert Word documents (DOCX files) to PDF format in batch. Use when the user uploads one or more Word documents and asks to convert them to PDF, export to PDF, or save as PDF. The tool processes multiple files efficiently and provides a summary of successful conversions and any failures.

  • 42 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added May 31, 2026
businesspythonbash

Security analysis

A100/100

Scanned May 31, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --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/diegosouzapw-docx-to-pdf/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-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 files) to PDF format in batch. Use when the user uploads one or more Word documents and asks to convert them to PDF, export to PDF, or save as PDF. The tool processes multiple files efficiently and provides a summary of successful conversions and any failures.
---

# DOCX to PDF Converter

## Overview

This skill converts Word documents (.docx files) to PDF format using LibreOffice's conversion engine. It's designed for batch processing - you can convert multiple files at once without manually opening each file.

**Key Features:**
- Batch conversion of multiple DOCX files
- Preserves original filenames (changes only the extension)
- Provides clear summary of successful and failed conversions
- Uses LibreOffice's conversion engine for high-quality output

## Workflow

### Step 1: Run the conversion script

Execute the conversion script with all uploaded DOCX files:

```bash
python3 /mnt/skills/user/docx-to-pdf/scripts/convert_to_pdf.py /mnt/user-data/uploads/*.docx
```

Or for specific files:

```bash
python3 /mnt/skills/user/docx-to-pdf/scripts/convert_to_pdf.py /mnt/user-data/uploads/file1.docx /mnt/user-data/uploads/file2.docx
```

The script automatically:
- Converts each DOCX file to PDF using LibreOffice
- Preserves the original filename (e.g., `contract.docx` → `contract.pdf`)
- Saves all PDFs directly to `/mnt/user-data/outputs/`
- Tracks successful conversions and failures
- Provides a summary at the end

### Step 2: Present files to user

The script saves PDFs directly to `/mnt/user-data/outputs/`, so use the `present_files` tool to share them with the user along with the conversion summary.

## Output

- **PDF files**: Same name as original DOCX, saved in `/mnt/user-data/outputs/`
- **Console output**: Summary showing:
  - Total files processed
  - Number of successful conversions
  - List of any files that failed to convert

## Error Handling

If a file fails to convert:
- The script continues processing remaining files
- The failed filename is logged
- At the end, all failures are reported to the user
- Common failure reasons: corrupted files, unsupported features, file access issues

## Technical Notes

- Uses LibreOffice headless mode for conversion
- Conversion quality: ~90-95% identical to Word's "Save as PDF"
- Works with standard DOCX formatting including:
  - Text, paragraphs, headings
  - Tables and borders
  - Images and shapes
  - Basic fonts and styles
- May have minor differences with:
  - Complex embedded objects
  - Rare font combinations
  - Advanced Word-specific features

## Limitations

- Only processes `.docx` files (not `.doc` or other formats)
- Requires LibreOffice to be installed on the system
- Output quality may differ slightly from Microsoft Word's native PDF export
- Very large files (>100MB) may take longer to process

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…