Word to PDF Converter for Openclaw

A Python-powered utility for converting Word documents to PDF with full support for Chinese characters, emojis, and original document styling.

lirenweim
v1.0.0
Feb 26, 2026
3
3.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install word-to-pdf

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install word-to-pdf using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Word to PDF Converter?

The Word to PDF converter is a specialized utility within the Openclaw Skills ecosystem designed to bridge the gap between editable DOCX files and fixed-layout PDF documents. Built using the robust reportlab and python-docx libraries, this skill is engineered to handle complex text rendering tasks that standard converters often fail at, such as multi-language support and emoji integration.

This tool is particularly valuable for developers and teams working with international documentation, as it ensures that font styles, headers, and lists are accurately mapped from the source Word file to the final PDF output. By utilizing Openclaw Skills for your document workflows, you can automate the generation of professional reports without manual intervention.

Word to PDF Converter Use Cases

  • Automating the delivery of PDF versions of Word-based technical documentation.
  • Converting internal company reports that contain Chinese text and specialized emojis.
  • Streamlining document management workflows within an Openclaw Skills automated pipeline.
  • Generating standardized PDF outputs from variable Word templates in a headless environment.

How Word to PDF Converter Works

  1. The skill invokes python-docx to read and parse the hierarchical XML structure of the input Microsoft Word document.
  2. It identifies text styles, paragraph alignments, and structural elements like lists and headers.
  3. The engine registers necessary system fonts, such as Microsoft YaHei or Noto CJK, to ensure correct character rendering.
  4. Using the reportlab library, it programmatically draws the content onto a PDF canvas.
  5. The final document is exported to the user-defined path, maintaining the integrity of the original layout.

Word to PDF Converter Setup

To use this tool within the Openclaw Skills framework, you must have Python 3.6 or higher. Install the required libraries using pip:

pip install reportlab python-docx

Once installed, you can perform conversions directly from your terminal:

word-to-pdf source_document.docx final_output.pdf

Word to PDF Converter Data Schema & Taxonomy

The skill processes data using a simple input-output mapping while preserving document metadata. The following parameters are used:

Parameter Description Requirement
input_file The path to the source .docx document to be converted. Required
output_file The destination path for the generated PDF. Defaults to the input name if omitted. Optional
Font Mapping Automatically detects and maps system fonts for Chinese and Emoji support. Automatic

Word to PDF Converter Advanced Features

  • Native support for CJK (Chinese, Japanese, Korean) character sets to prevent text corruption.
  • Cross-platform font resolution for Windows, macOS, and Linux environments.
  • Automatic preservation of complex document structures including nested lists and multi-level headings.
  • High-fidelity emoji rendering for modern professional communication.
  • Optimized for integration with other Openclaw Skills for complex document automation tasks.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*