Skip to main content
Glama

convert_docx_to_pdf

Convert DOCX files to PDF while preserving Word formatting. Add watermarks or QR codes as needed for document processing workflows.

Instructions

Enhanced DOCX to PDF conversion with perfect Word style replication and Playwright integration. Watermark can be added by setting addWatermark=true (uses WATERMARK_IMAGE environment variable or default text "doc-ops-mcp"). QR code can be added by setting addQrCode=true (requires QR_CODE_IMAGE environment variable). Output directory is controlled by OUTPUT_DIR environment variable. Files will be automatically saved to OUTPUT_DIR with auto-generated names.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docxPathYesDOCX file path to convert
preserveFormattingNoPreserve original formatting
chineseFontNoChinese font family to useMicrosoft YaHei
addWatermarkNoAdd watermark to PDF (uses WATERMARK_IMAGE environment variable or default text "doc-ops-mcp")
addQrCodeNoAdd QR code to PDF (requires QR_CODE_IMAGE environment variable)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tele-AI/doc-ops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server