@rishabhdugar

DOCX to PDF

Convert DOCX, DOC, ODT, RTF, and TXT documents to PDF. Reverse-convert PDF back to DOCX. Check PDF metadata. Powered by PDFAPIHub.

当前版本
v1.0.0
code-plugin社区source-linked

DOCX to PDF — OpenClaw Plugin

Convert DOCX, DOC, ODT, RTF, and TXT documents to PDF using the PDFAPIHub API. This OpenClaw plugin gives your AI agent the ability to convert Word documents to PDF, convert PDFs back to editable DOCX, and check PDF metadata.

What It Does

Convert Microsoft Word and other office documents to PDF with full formatting preservation — fonts, images, tables, headers, footers, and page layout. Reverse the process by converting PDFs back to editable DOCX files.

Features

  • DOCX to PDF — Convert Word documents to PDF with perfect formatting
  • Multi-Format Support — Accept DOC, DOCX, ODT, RTF, and TXT inputs
  • PDF to DOCX — Reverse-convert PDFs back to editable Word documents
  • Formatting Preservation — Maintains fonts, images, tables, headers, and footers
  • Page Selection — Convert specific pages when converting PDF to DOCX
  • Custom Filenames — Set custom output filenames
  • PDF Metadata — Check page count, file size, encryption, and document properties
  • Flexible Output — Download URL, base64 string, or raw file

Tools

ToolDescription
docx_to_pdfConvert DOCX/DOC/ODT/RTF/TXT to PDF
pdf_to_docxConvert PDF to editable DOCX
pdf_infoGet PDF metadata and properties

Installation

openclaw plugins install clawhub:pdfapihub-docx-to-pdf

Configuration

Add your API key in ~/.openclaw/openclaw.json:

{
  "plugins": {
    "entries": {
      "pdfapihub-docx-to-pdf": {
        "enabled": true,
        "env": {
          "PDFAPIHUB_API_KEY": "your-api-key-here"
        }
      }
    }
  }
}

Get your free API key at https://pdfapihub.com.

Usage Examples

Just ask your OpenClaw agent:

  • "Convert this Word doc to PDF: https://example.com/report.docx"
  • "Convert this PDF to an editable Word document"
  • "Convert this LibreOffice ODT file to PDF"
  • "Convert this RTF file to PDF"
  • "How many pages is this PDF?"

Use Cases

  • Business Documents — Convert Word reports, proposals, and contracts to PDF for sharing
  • Document Archiving — Convert editable documents to PDF for long-term archiving
  • PDF Editing — Convert PDFs to DOCX for editing, then back to PDF
  • Format Standardization — Convert DOC, ODT, RTF, TXT files to a universal PDF format
  • Legal Documents — Convert Word contracts and agreements to non-editable PDF
  • Academic Papers — Convert research papers and theses from DOCX to PDF

API Documentation

Full API docs: https://pdfapihub.com/docs

License

MIT

源码与版本

源码仓库

PdfApiHub/openclaw-docx-to-pdf

打开仓库

源码提交

610476c85f65ddbdbeeb251add831d74ae1ec0b6

查看提交

安装命令

openclaw plugins install clawhub:docx-to-pdf

元数据

  • 包名: docx-to-pdf
  • 创建时间: 2026/04/17
  • 更新时间: 2026/04/17
  • 执行代码:
  • 源码标签: main

兼容性

  • 构建于 OpenClaw: 2026.3.24-beta.2
  • 插件 API 范围: >=2026.3.24-beta.2
  • 标签: latest
  • 文件数: 7