Integration
Docx To Pdf
OpenClaw plugin to convert Word documents (DOCX/DOC) to PDF — formatting preservation via LibreOffice, custom output filenames, URL and base64 input. Also converts PDF back to DOCX. Powered by PDFAPIHub API. Free API key at pdfapihub.com
Install
openclaw plugins install clawhub:pdfapihub-docx-to-pdf
Configuration Example
{
"plugins": {
"entries": {
"pdfapihub-docx-to-pdf": {
"enabled": true,
"env": {
"PDFAPIHUB_API_KEY": "your-api-key-here"
}
}
}
}
}
README
# DOCX to PDF — OpenClaw Plugin
Convert DOCX, DOC, ODT, RTF, and TXT documents to PDF using the [PDFAPIHub](https://pdfapihub.com) 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
| Tool | Description |
|------|-------------|
| `docx_to_pdf` | Convert DOCX/DOC/ODT/RTF/TXT to PDF |
| `pdf_to_docx` | Convert PDF to editable DOCX |
| `pdf_info` | Get PDF metadata and properties |
## Installation
```bash
openclaw plugins install clawhub:pdfapihub-docx-to-pdf
```
## Configuration
Add your API key in `~/.openclaw/openclaw.json`:
```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](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](https://pdfapihub.com/docs)
## License
MIT
integration
Comments
Sign in to leave a comment