@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.

Current version
v1.0.0
code-pluginCommunitysource-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

Source and release

Source repository

PdfApiHub/openclaw-docx-to-pdf

Open repo

Source commit

610476c85f65ddbdbeeb251add831d74ae1ec0b6

View commit

Install command

openclaw plugins install clawhub:docx-to-pdf

Metadata

  • Package: docx-to-pdf
  • Created: 2026/04/17
  • Updated: 2026/04/17
  • Executes code: Yes
  • Source tag: main

Compatibility

  • Built with OpenClaw: 2026.3.24-beta.2
  • Plugin API range: >=2026.3.24-beta.2
  • Tags: latest
  • Files: 7