# LibreOffice Template Fill Merge

Replace placeholders in DOCX template and render merged records to PDF using LibreOffice

> Canonical page: https://elysiatools.com/en/tools/libreoffice-template-fill-merge

- **Category:** Document Tools

- **Keywords:** docx, template, mail merge, libreoffice, pdf

## Overview

Mail-merge style PDF generation from DOCX templates. \*\*How it works:\*\* - Fill template placeholders like \`{{name}}\`, \`${name}\`, \`<\>\` - Supports one record or array of records - Render each merged DOCX with LibreOffice and combine into one PDF

## Inputs

- **Template DOCX** (file): Upload template .docx
- **Merge Data JSON** (textarea): \[{"name":"Alice","company":"Elysia"},{"name":"Bob","company":"Tools"}\]

## When to use

- Generating personalized letters, invoices, or certificates from a structured data source.
- Creating batch reports or contracts where multiple documents need to be rendered and combined into one file.
- Standardizing document output by using a consistent DOCX template for repetitive administrative tasks.

## How it works

- Upload your DOCX template containing placeholders like {{name}}, ${name}, or <\>.
- Provide your data in JSON format, either as a single object or an array of records.
- The tool replaces placeholders with your data, processes each record through LibreOffice, and merges the resulting pages into a single PDF.

## Use cases

- Automated generation of personalized client contracts from a CRM export.
- Batch creation of employee certificates or training completion documents.
- Mass production of shipping labels or invoices based on order data.

## Frequently asked questions

### Which placeholder formats are supported?

The tool supports {{name}}, ${name}, and <\> syntax within your DOCX template.

### Can I process multiple records at once?

Yes, by providing an array of objects in the Merge Data JSON field, the tool will generate a document for each entry and combine them into one PDF.

### What happens if I provide a single object instead of an array?

The tool will generate a single PDF document based on that specific record.

### Is the output always a PDF?

Yes, the tool uses LibreOffice to render the final merged document into a PDF format.

### Are there limits on the template file size?

The tool supports file uploads up to 100MB.

## Related tools

- [LibreOffice DOCX to PDF](https://elysiatools.com/en/tools/libreoffice-docx-to-pdf): Batch convert .doc/.docx files to PDF via LibreOffice while keeping original layout
- [LibreOffice DOCX to PDF/A](https://elysiatools.com/en/tools/libreoffice-docx-to-pdf-a): Convert DOC/DOCX to PDF/A using LibreOffice rendering and Ghostscript conformance pass
- [LibreOffice PPT to PDF Handouts](https://elysiatools.com/en/tools/libreoffice-ppt-to-pdf-handouts): Convert PPT/PPTX to PDF and optionally render handout layout with multiple slides per page
- [LibreOffice XLSX to PDF Report](https://elysiatools.com/en/tools/libreoffice-xlsx-to-pdf-report): Convert Excel workbooks to multi-page PDF reports via LibreOffice and merge batch outputs
- [OCR PDF to Structured JSON Bridge](https://elysiatools.com/en/tools/ocr-pdf-to-structured-json-bridge): Extract the PDF text layer with geometry (lines by y-position, tables by column gaps, headings by font size, colon key-value pairs), then fill a user-supplied JSON Schema field by field — labels matched by normalized keys, values coerced to declared types and validated with ajv.
- [Data URI Generator](https://elysiatools.com/en/tools/data-uri-generator): Convert files into Data URIs (Base64 or percent-encoded) for inlining images, fonts, and assets directly into HTML, CSS, or Markdown
- [HTML to PDF Renderer](https://elysiatools.com/en/tools/html-to-pdf-renderer): Render a limited HTML subset into a PDF with a deterministic layout
- [PDF Header/Footer Snippets](https://elysiatools.com/en/tools/pdf-header-footer-snippets): Convert HTML to PDF with reusable logo, title, and date snippets

## Samples

- [PDF Samples](https://elysiatools.com/en/samples/pdf-samples): Generated PDF samples from tools dated 2026-02-01 to 2026-02-10
- [Android Serialization Java Samples](https://elysiatools.com/en/samples/android-serialization-java): Android Java serialization examples including JSON serialization, deserialization, and XML parsing
- [Android Serialization Kotlin Samples](https://elysiatools.com/en/samples/android-serialization-kotlin): Android Kotlin serialization examples including JSON serialization, deserialization, and XML parsing
- [macOS Serialization Objective-C Samples](https://elysiatools.com/en/samples/macos-serialization-objectivec): macOS Objective-C serialization examples including JSON serialization, JSON deserialization, and XML parsing

## Related content

- [Templated Document Generation Workflow](https://elysiatools.com/en/hubs/templated-document-generation): Create repeatable forms, certificates, report cards, invoices, receipts, storyboards, DOCX merges, PDF documents, and XLSX template outputs from structured inputs.
