Key Facts
- Category
- Documents & PDF
- Input Types
- file, textarea
- Output Type
- file
- Sample Coverage
- 4
- API Ready
- Yes
Overview
The LibreOffice Template Fill Merge tool allows you to automate document creation by injecting data into DOCX templates and rendering the results as professional PDFs. It functions like a mail-merge system, supporting various placeholder formats to generate single or batch documents efficiently.
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 <<name>>.
- •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
Examples
1. Personalized Client Letter
Account Manager- Background
- The manager needs to send a formal welcome letter to a new client with specific company details.
- Problem
- Manually editing Word documents for every new client is prone to typos and formatting errors.
- How to Use
- Upload the welcome_template.docx and input the client's name and company details in the JSON field.
- Example Config
-
{"name":"Alice","company":"Elysia Tools","date":"2026-02-17"} - Outcome
- A clean, professional PDF letter with the client's information correctly inserted.
2. Batch Invoice Generation
Billing Clerk- Background
- The clerk needs to generate monthly invoices for three different vendors simultaneously.
- Problem
- Creating individual files for each vendor is time-consuming and difficult to manage for printing.
- How to Use
- Upload the invoice_template.docx and provide an array of vendor data in the JSON field.
- Example Config
-
[{"name":"Alice","company":"Elysia"},{"name":"Bob","company":"Tools"},{"name":"Carol","company":"Studio"}] - Outcome
- A single PDF file containing three separate invoices, ready for printing or distribution.
Try with Samples
json, xml, pdfRelated Hubs
FAQ
Which placeholder formats are supported?
The tool supports {{name}}, ${name}, and <<name>> 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.