Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计通过

docx-to-pdfDOCX TO PDF 文档

Agent Skill

docx-to-pdf 用于整理文档、README、Markdown 和说明材料,适合在 OpenClaw 中需要把零散信息整理成结构清晰的文档时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,858

周安装

79

GitHub Stars

公开资料未说明

下载量

651
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:docx-to-pdf(DOCX TO PDF 文档)
来源仓库:https://github.com/ahmed181283/docx-to-pdf
安装命令:
openclaw skills install docx-to-pdf
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install docx-to-pdf

简介

用于整理文档、README 和 Markdown 材料,适合将零散信息转化为结构化内容。

  • 特别适合需要将 Word 文档转换为 PDF 格式的场景。
  • 支持图像、格式和文档结构的完整保留转换。docx-to-pdf 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 通过 OpenClaw 的 clawhub 安装方式部署。
  • 建议在使用前确认转换质量和格式保真度要求。

SKILL.md

name
word-to-pdf
description
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.

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

What Gets Preserved

  • Embedded images and screenshots
  • Tables and cell formatting
  • Headers, footers, and page numbers
  • Font styles (bold, italic, underline)
  • Document structure and headings
  • Bullet points and numbered lists
  • Page layout and margins

Known Limitations

  • Very complex macros may not convert perfectly
  • Some advanced Word features may have PDF equivalents
  • Custom fonts may need to be installed
  • Extremely large documents may need memory tuning

Troubleshooting

Images Not Appearing

  1. Check that images are embedded, not linked
  2. Verify LibreOffice can open the source .docx
  3. Try LibreOffice method (best image support)
  4. Check disk space for large files

Formatting Issues

  1. LibreOffice method provides best results
  2. Verify document isn't corrupted
  3. Try opening in Word first to fix issues
  4. Use headless mode to avoid UI conflicts

Memory Issues with Large Files

# Increase LibreOffice memory (Linux)
soffice --headless -accept="socketsocket,host=localhost,port=2002;urp;" -nologo -nodefault -nofirststartwizard -nolockcheck -norestore -nocrashreport -nocrashreport -headless -invisible -convert-to pdf -nocrashreport -outdir /output /input

# Or split large document into parts before conversion

Font Issues

  • Install required system fonts
  • Use common fonts (Arial, Times, Helvetica) for better compatibility
  • Check LibreOffice font folder

Advanced Usage

Custom PDF Settings (LibreOffice)

# Export with specific settings
libreoffice --headless --convert-to pdf:writer_pdf_Export --infilter="writer_pdf_Export" document.docx

Python Script for Batch Processing

import os
from docx2pdf import convert

def convert_folder(input_dir, output_dir):
    os.makedirs(output_dir, exist_ok=True)
    for file in os.listdir(input_dir):
        if file.endswith('.docx'):
            input_path = os.path.join(input_dir, file)
            output_path = os.path.join(output_dir, file.replace('.docx', '.pdf'))
            convert(input_path, output_path)
            print(f"Converted: {file}")

convert_folder('./docs', './pdfs')

Quality Checklist

Before final conversion:

  • [ ] Source .docx opens without errors
  • [ ] Images are embedded (not external links)
  • [ ] Required fonts are installed
  • [ ] Sufficient disk space available
  • [ ] Test conversion with similar document first
  • [ ] Verify output PDF matches expected formatting

Output Quality Tips

  1. Test First: Always convert a sample document first
  2. Use LibreOffice: Best method for fidelity
  3. Check Images: Verify images appear correctly in output
  4. Batch Test: Test one file before batch conversion
  5. Keep Originals: Never delete source .docx files until PDF verified

Getting Help

For detailed conversion options and troubleshooting:

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

71.72%
按下载量换算467

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills