ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

word-to-pdf

Convert Word documents (.docx) to PDF format while preserving embedded images, formatting, and document structure. Use when user needs to convert Word files to PDF, batch convert documents, or maintain visual fidelity when converting DOCX files with images, tables, and complex formatting.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/ahmed181283/docx-to-pdf
Or

Word to PDF Converter

Quick Start

This skill converts Word documents (.docx) to PDF format, preserving embedded images, formatting, tables, and document structure.

When to Use This Skill

Use this skill when you need to:

  • Convert Word documents to PDF with images intact
  • Batch convert multiple .docx files to PDF
  • Preserve document formatting during conversion
  • Handle Word files with embedded images, charts, or complex layouts
  • Generate PDFs from Word templates or reports

Conversion Methods

Method 1: LibreOffice (Recommended)

Best for: Complex documents, highest fidelity, cross-platform Requirements: LibreOffice installed Pros: Free, handles complex formatting well, excellent image support Cons: Requires LibreOffice installation

Method 2: Python (python-docx + reportlab)

Best for: Programmatic conversion, custom formatting Requirements: Python with specific libraries Pros: Highly customizable, no external dependencies Cons: More complex setup, may miss some formatting

Method 3: Pandoc

Best for: Text-heavy documents, simple conversion Requirements: Pandoc installed Pros: Fast, widely available Cons: Limited image support, basic formatting

Method 4: docx2pdf (Python)

Best for: Quick conversions, good image support Requirements: Python with docx2pdf library Pros: Easy setup, good for most documents Cons: May struggle with very complex layouts

Usage

Basic Conversion

Convert document.docx to PDF

Batch Conversion

Convert all .docx files in current directory to PDF

Custom Output

Convert report.docx to PDF and name it monthly-report.pdf

Installation & Setup

LibreOffice Method

# Install LibreOffice
sudo apt-get install libreoffice

# Or on macOS
brew install --cask libreoffice

# Or on Windows
# Download from libreoffice.org

Python Method

# Install required libraries
pip install python-docx reportlab pillow

# Or use docx2pdf
pip install docx2pdf

Pandoc Method

# Install pandoc
sudo apt-get install pandoc

# Or on macOS
brew install pandoc

Conversion Commands

LibreOffice (Recommended)

# Single file conversion
libreoffice --headless --convert-to pdf document.docx

# Specify output directory
libreoffice --headless --convert-to pdf --outdir ./pdfs document.docx

# Batch convert
for file in *.docx; do
    libreoffice --headless --convert-to pdf "$file"
done

Python Method

from docx import Document
from docx2pdf import convert

# Convert with images preserved
convert("document.docx", "output.pdf")

Pandoc Method

# Basic conversion (limited image support)
pandoc document.docx -o output.pdf

# With better formatting
pandoc document.docx -o output.pdf --pdf-engine=xelatex

Features & Capabilities

Metadata

Stars4473
Views1
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-ahmed181283-docx-to-pdf": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.

Related Skills

daily-cinema

Generate daily cinema and film industry content and TikTok scripts using free entertainment news sources. Use when user wants to create content about movie releases, film news, celebrity updates, box office results, or entertainment industry developments from the last 24 hours.

ahmed181283 4473

integration-testing

Automated integration testing with external services using testcontainers, wiremock, localstack. Use when developer needs to set up integration tests for testing with real services in Docker containers via testcontainers, mocking HTTP APIs with WireMock, testing AWS S3 with LocalStack, SFTP integration testing, or setting up complex integration test environments with external dependencies.

ahmed181283 4473

daily-geo-tiktok

Generate daily geopolitical TikTok scripts using free news sources. Use when user wants to create TikTok content about world events, conflicts, diplomacy, or geopolitical developments that happened in the last 24 hours.

ahmed181283 4473

defi-yield-optimizer

Professional DeFi yield farming optimizer for tracking and optimizing yields across multiple chains and protocols. Use when user needs to discover high-yield DeFi opportunities, track portfolio performance, calculate ROI, and manage yield farming strategies across Ethereum, Polygon, BSC, Arbitrum, Optimism, and other EVM chains.

ahmed181283 4473

daily-technology

Generate daily technology news content and TikTok scripts using free tech news sources. Use when user wants to create content about tech news, product launches, startups, AI developments, or technology industry updates from the last 24 hours.

ahmed181283 4473