doc-converter for Openclaw

A high-fidelity document converter for seamless transitions between Word, PDF, Markdown, and HTML formats.

tobewin
v1.0.1
Mar 24, 2026
1
1.6k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install document-converter-pro

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 document-converter-pro 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 doc-converter?

The doc-converter is a versatile tool designed for developers and power users who need reliable transitions between various document formats. Built as part of the Openclaw Skills collection, it provides a cross-platform solution for transforming complex files while preserving layout, fonts, and images. Whether you are generating professional PDF reports from Markdown or turning HTML into shareable documents, this skill ensures high-fidelity output without relying on external cloud services.

By leveraging localized Python libraries and system dependencies like wkhtmltopdf, the skill offers a private and secure environment for document processing. It is particularly effective for automated workflows where consistency across Windows, macOS, and Linux is essential. With Openclaw Skills like this, users can bypass expensive proprietary software and handle all their conversion needs directly through their AI agent.

doc-converter Use Cases

  • Automatically generating PDF invoices or reports from Markdown source files.
  • Converting legacy Word documents into Markdown for documentation version control.
  • Transforming HTML web content into clean, printable PDF documents.
  • Streamlining the preparation of professional documents by converting .docx files to PDF for distribution.

How doc-converter Works

  1. The skill identifies the user's intent to convert a file through specific trigger phrases or file extension detection.
  2. It analyzes the source file path and the desired target format (PDF, DOCX, MD, or HTML).
  3. Based on the file types, it selects the appropriate internal conversion engine (e.g., python-docx for Word or markdown-to-pdf via fpdf2).
  4. The script executes the conversion locally, handling specific elements like headers, tables, and code blocks to maintain formatting.
  5. The final high-fidelity file is saved to the specified output path, ready for use.

doc-converter Setup

To get started with this member of the Openclaw Skills library, ensure you have Python 3 installed and run the following commands:

pip install python-docx fpdf2 markdown

For HTML to PDF conversion, it is recommended to install the optional system dependency:

# macOS
brew install wkhtmltopdf

# Linux
sudo apt install wkhtmltopdf

doc-converter Data Schema & Taxonomy

The doc-converter processes local files and outputs the converted results based on the following taxonomy:

Feature Description
Source Files Supports .docx, .md, .html, and .pdf input.
Output Files Generates .pdf, .docx, or .md depending on the conversion logic.
Quality Levels Supports high (300 DPI), medium (150 DPI), and low (72 DPI) profiles.
Metadata Uses internal mapping to associate file extensions with specific conversion methods.

doc-converter Advanced Features

  • Auto-Detection: Automatically determines the required conversion logic by analyzing file extensions.
  • Quality Presets: Offers configurable DPI and compression settings for PDF generation.
  • Table Preservation: Includes specific logic to map Word and Markdown tables into structured PDF cells.
  • Cross-Platform Fidelity: Designed to maintain consistent styling across different operating systems using standardized font mapping.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins python3
Github Stars: 0
forks: 0

Featured*