LibreOffice DOCX to PDF

Batch convert .doc/.docx files to PDF via LibreOffice while keeping original layout

Convert Word documents to PDF with LibreOffice CLI.

Highlights:

  • Supports .doc and .docx
  • Batch conversion in one run
  • Automatically merges multiple converted PDFs into one output

Example Results

2 examples

Batch DOCX to Single PDF

Convert two DOCX files and merge them into one PDF output

libreoffice-docx-to-pdf-example1.pdf View File
View input parameters
{ "sourceFiles": [ "/Users/quyue/www/elysia-tools/public/samples/docx/simple.docx", "/Users/quyue/www/elysia-tools/public/samples/docx/formatted.docx" ] }

DOCX Table and Content Export

Convert structured DOCX documents with tables and formatted text

libreoffice-docx-to-pdf-example2.pdf View File
View input parameters
{ "sourceFiles": [ "/Users/quyue/www/elysia-tools/public/samples/docx/table.docx", "/Users/quyue/www/elysia-tools/public/samples/docx/formatted.docx" ] }

Click to upload files or drag and drop files here

Maximum file size: 200MB Maximum files: 30
Supported formats: application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document

Key Facts

Category
Documents & PDF
Input Types
file
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

The LibreOffice DOCX to PDF tool provides a reliable way to convert Word documents into professional PDF files while maintaining your original layout, fonts, and formatting. By leveraging the LibreOffice engine, this utility ensures high-fidelity conversions for both .doc and .docx files, allowing you to process multiple documents simultaneously and merge them into a single, cohesive PDF output.

When to Use

  • When you need to convert multiple Word documents into a single, unified PDF file for distribution.
  • When preserving complex document layouts, tables, and formatting is critical during the conversion process.
  • When you need a fast, batch-processing solution to handle large volumes of legacy .doc or modern .docx files.

How It Works

  • Upload your .doc or .docx files using the file selector.
  • The tool utilizes the LibreOffice CLI to process each document, ensuring the original structure is preserved.
  • The system automatically merges all converted documents into one final PDF file for easy download.

Use Cases

Consolidating multiple project reports or chapters into a single PDF document for client submission.
Standardizing internal documentation by converting various legacy Word files into a uniform PDF format.
Preparing structured documents containing tables and specific formatting for archival or secure sharing.

Examples

1. Batch Project Report Consolidation

Project Manager
Background
You have several individual Word documents representing different sections of a project report that need to be sent as one file.
Problem
Manually converting and merging files is tedious and often breaks the formatting of tables.
How to Use
Upload all section files simultaneously to the tool.
Outcome
The tool generates a single, professionally formatted PDF containing all sections in the correct order.

2. Converting Formatted Documentation

Technical Writer
Background
You maintain technical manuals in .docx format that include complex tables and specific font styles.
Problem
Standard converters often shift table borders or change fonts during the export to PDF.
How to Use
Upload the technical manual files to the tool for high-fidelity conversion.
Outcome
A clean PDF output that perfectly mirrors the original Word document's layout and table integrity.

Try with Samples

xml, pdf, file

Related Hubs

FAQ

Which file formats are supported?

This tool supports both legacy .doc and modern .docx Word document formats.

Can I convert multiple files at once?

Yes, the tool is designed for batch conversion and will automatically merge all uploaded files into a single PDF.

Will my document formatting be preserved?

Yes, by using the LibreOffice engine, the tool maintains your original layout, fonts, and table structures.

Is there a limit to the number of files I can upload?

You can upload up to 30 files in a single batch, provided the total size does not exceed 200MB.

Do I need to install LibreOffice to use this tool?

No, the conversion is handled entirely on our servers using our integrated LibreOffice environment.

API Documentation

Request Endpoint

POST /en/api/tools/libreoffice-docx-to-pdf

Request Parameters

Parameter Name Type Required Description
sourceFiles file (Upload required) Yes -

File type parameters need to be uploaded first via POST /upload/libreoffice-docx-to-pdf to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-libreoffice-docx-to-pdf": {
      "name": "libreoffice-docx-to-pdf",
      "description": "Batch convert .doc/.docx files to PDF via LibreOffice while keeping original layout",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=libreoffice-docx-to-pdf",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]