XWiki office import and conversion with LibreOffice: when you need it
Teams that move existing Word, Excel or PowerPoint material into XWiki need a conversion service in place before the first import. Attachments can be stored as they are, but importing office documents as wiki content depends on a converter that turns them into content XWiki can index and edit. Before you commit to this path, check how much of the source material is office files. If the content is mostly PDFs, plain text or pages from another wiki, the converter may matter for only a small share of the work. If the migration includes many office files, treat the converter as a deliverable with a named owner, a test set drawn from your own documents and a sizing plan. Decide from a sample of your actual files, because the same format can convert differently depending on how it was authored.
The LibreOffice server is the component that performs the conversion. It runs as its own process, separate from the XWiki application and its servlet container, so the memory and CPU used to open and render large office files do not compete with page requests from users. This separation has practical effects: the conversion service can be sized, restarted and upgraded on its own schedule, and a document that fails to convert does not require restarting the wiki. Confirm with the XWiki documentation for your version how the importer locates the server, which port it expects and which LibreOffice release it was tested against. Check what your chosen image provides before you assume a converter is present, and do not treat the answer as settled until a test import has run successfully.
Expect manual rework in proportion to document complexity. LibreOffice's own guidance says converted Microsoft Office files often need reformatting, and features such as AutoShapes, tracked changes (revision marks), embedded OLE objects, pivot tables, conditional formatting and some formulas may not convert cleanly. Macros need a separate decision. LibreOffice's own macro language is Basic, so VBA macros in a Word or Excel file are kept through an edit and run again in Office, while only some Excel VBA scripts run inside LibreOffice, and only when that option is enabled. Plan a human review step for spreadsheets and presentations in particular, record which documents need checking, and keep the original files as the source of record until owners sign off on the imported version. The LibreOffice help page on converting Microsoft Office documents lists the known limits and is a sound starting point for your test plan.
Where the conversion server can run
Running the converter inside the XWiki container keeps the number of moving parts lowest. XWiki calls the office component locally, so there is no extra network hop, no second service to secure and no separate credential to manage. Whether this option exists depends on what the image you deploy contains, so confirm that first in the official XWiki Docker image documentation.
- Fewest moving parts: one container, one upgrade cycle and one place to read logs.
- Shared resources: conversion competes with the Tomcat heap, database connections and CPU, so large imports can slow page rendering for other users.
- Image contents: the official images come in MySQL, PostgreSQL and MariaDB variants, each on Tomcat. Confirm whether an office converter is bundled in your chosen tag and which LibreOffice version it carries.
- Coupled upgrades: a converter change that arrives with an XWiki image update changes both at once, so test the pair together.
- Derived images: adding LibreOffice to your own image makes you responsible for patching its packages.
Before you size the pod or container, check the bundled converter version and the memory limit against your largest expected document.
A separate converter service runs in its own container on the same Docker host or Kubernetes cluster as XWiki. XWiki reaches it over the internal network through a service name, which gives you independent scaling and restarts while keeping traffic inside your existing platform. This placement suits teams that import large batches of office files and want conversion load kept away from the wiki's request handling.
- Independent scaling: you can add replicas or raise limits for the converter without resizing the XWiki pods.
- Failure isolation: a crashed or hung conversion process restarts without restarting XWiki.
- Network policy: a Kubernetes network policy or Docker network can allow only the XWiki workload to reach the converter.
- Service discovery: the address XWiki uses must be set in its configuration, so confirm the setting name and protocol in the current documentation.
- Ownership: the converter needs its own image, health checks, logs and patch schedule.
Before you commit, confirm whether XWiki supports a remote converter in your release line and how it authenticates to that service.
A dedicated server sits outside the network path that carries wiki traffic, usually in a separate segment with its own access controls. This placement fits organizations that treat imported documents as sensitive, that run XWiki in a restricted zone, or that must keep conversion off shared hosts. The trade-off is that document content now crosses a network boundary, so transport security and access control become part of the design.
- Isolation: a compromised converter has no direct access to the XWiki host or its database.
- Encrypted traffic: plan TLS between XWiki and the converter, with certificates issued and rotated under your own process.
- Separate patch cycle: the server's operating system and LibreOffice packages follow your server policy, not the XWiki image cadence.
- Operations overhead: monitoring, capacity and backup of the converter host become separate tasks for your operations team.
- Large files: transfer time across the boundary adds to each import, so measure it with representative documents.
Before you choose this model, confirm with the XWiki documentation which protocol and authentication options the remote converter setup supports.
Several facts decide the placement, and none should be assumed from general knowledge of LibreOffice. Start with the XWiki tag you plan to run: the researched tags were 18.8.0 for stable, 17.10.14 for LTS and 18.4.7 for the intermediate LTS, and each line may ship a different converter setup. Then check the LibreOffice release that your XWiki line expects, since LibreOffice publishes several branches at once. The LibreOffice download page lists the current stable release and the older branch still in use.
- Bundled converter: whether the tag you pick includes an office converter, and which version.
- Branch support: the LibreOffice branch your organization will run, its end-of-support date and any enterprise support option for it.
- Document types: the formats your users import, such as docx, xlsx and pptx, and their complexity.
- Fonts and locales: the fonts and language packs the converter needs to render your documents correctly.
- Configuration keys: the exact settings for the converter address, timeouts and resource limits in your release line.
Record the answers in your design document before you choose a placement, because each one changes the patch and sizing plan.
Configuration options and when each fits
This table compares the main choices for the LibreOffice conversion service that XWiki uses for office import: where it runs, which release branch it follows, whether to buy enterprise support and how much capacity to allocate. Read each row for the condition that makes an option fit and the trade-off you accept by choosing it.
| Decision | When it fits | Trade-off |
|---|---|---|
| Bundled conversion in the XWiki container | Small wikis, pilots and occasional imports where few users upload office files | Conversion competes with wiki page rendering for the same container resources and scales only with the container |
| Separate LibreOffice service outside XWiki | Production wikis with regular imports, large files or a need to size and restart conversion independently | Another service to deploy, monitor, patch and connect to XWiki over the network |
| LibreOffice 26.8 latest stable branch | Teams that want current fixes and can test upgrades on a schedule | Newer branch, so compatibility with your document set needs testing before rollout |
| LibreOffice 26.2 branch for production | Production users who want to stay on a settled branch while 26.8 matures | The 26.2 branch is supported until November 30, 2026, so plan the move to a later branch before that date |
| Enterprise edition from an ecosystem partner | Large organizations that need long-term SLAs, vendor technical support or security updates over several years | Recurring subscription cost and a dependency on the partner's release schedule; confirm terms directly with the vendor |
| Community edition without commercial support | Organizations with in-house staff who can handle patching, testing and incident response themselves | The Document Foundation does not provide technical support, so your team carries the operational risk |
| Resource allocation (CPU and memory) | Sized to your largest expected file and the number of concurrent conversions, then measured under real imports | Under-sizing causes slow or failed conversions; over-sizing ties up capacity you may not use. Confirm figures by testing your own documents |
How to set up LibreOffice conversion for XWiki
This sequence takes an XWiki instance from no conversion path to a tested, pinned LibreOffice server that imports office documents. Each step ends with a check, so a failure shows up at the stage where it starts. Work through the steps in order, because later steps assume the earlier checks passed.
Confirm the XWiki line and image variant
Record the exact XWiki image tag and database variant your team will run. Confirm the current tags on the official Docker image page. The tags published at the time of research included 18.8.0 for stable, 18.4.7 for the intermediate LTS and 17.10.14 for LTS, with MySQL, PostgreSQL and MariaDB variants that all run on Tomcat. The platform owner and XWiki administrator should sign off the choice against the release notes and upgrade plan. Check: the pinned tag pulls cleanly on your amd64 or arm64 hosts, and a test instance starts and reaches the login page.
Check what the XWiki image includes
Read the official Docker image documentation for your chosen tag and confirm whether the image ships a LibreOffice install and conversion support. Start a test container from that tag and run
soffice --versioninside it. If the command is missing or the image does not include conversion, plan a separate conversion host in the next step. Write down the answer next to the tag so no one assumes the image handles conversion later. Check: you have a dated record that states whether the image includes LibreOffice and which version it reports.Choose and prepare the conversion host
Decide whether conversion runs on a dedicated host or beside the XWiki container. A dedicated host keeps document processing load and converter updates away from the wiki, and it lets the team patch the converter on its own schedule. Size the host from your expected document volume and the largest files users will upload, and confirm the requirements in the documentation for your XWiki version. Open a firewall path from the XWiki server only to the converter's listening port. Check: from the XWiki host, a TCP connection to the converter port succeeds, and no other source can reach it.
Install a pinned LibreOffice release
Install one specific LibreOffice release on the conversion host and use the same release in test and production. The Document Foundation announced LibreOffice 26.8.1 on October 2, 2026 as the first maintenance release of the 26.8 family. It also said production users can stay on 26.2, which is supported until November 30, 2026. Large organizations can compare these branches with the enterprise editions offered by ecosystem partners, which include SLAs and security updates, because the Document Foundation does not provide technical support. Hold automatic upgrades on the package. Check:
soffice --versionreports the pinned release, and you have a written record of its support end date.Run the converter headless as a service
Run LibreOffice in headless mode under a dedicated unprivileged account with its own profile directory, so conversion jobs never share settings with a person's desktop session. Wrap the listener in a systemd unit or your container runtime's restart policy so it recovers from failure and starts after a reboot. Use the listener command and parameters from the XWiki documentation for your version, because the converter must match what XWiki expects. Check: a headless conversion of a sample .docx to PDF with
soffice --headless --convert-to pdfsucceeds, the output opens correctly, and the service is running after a host reboot.Connect XWiki to the converter
Set the converter's host and port in XWiki's office import configuration, following the documentation for your XWiki line. Restart the XWiki service if the settings require it. Keep the address internal and confirm the XWiki container can resolve and reach it. Watch the XWiki log during the first import attempt for connection or timeout messages. Record each setting you changed so the configuration can be rebuilt after an upgrade. Check: the office import function reports the converter as available, and a single test upload completes without errors in the log.
Test imports with representative files
Build a test set from documents your users actually send, covering .docx, .xlsx, .pptx and .odt files. Include the features LibreOffice documents as hard to convert cleanly: AutoShapes, revision marks, OLE objects, pivot tables, conditional formatting and some formulas. Import each file, then compare the result with the original for layout, tables, images and formulas. Expect some manual reformatting in proportion to document complexity. Check: every file either imports correctly or has a documented failure, and the XWiki and converter logs show no unexplained errors for the batch.
Plan upgrades with repeated testing
Treat every LibreOffice or XWiki upgrade as a change that requires running the test set again. Subscribe to release announcements for both products, and track the support end date of your pinned branch so you can move to a supported release before it ends. Record the converter version next to the XWiki tag in your change log. Check: after each upgrade, the test set produces the same results as before, and the change record names both versions.
How an office upload moves from XWiki to the converter
The path starts when a user uploads an office file to an attachment in XWiki. XWiki sends the file to the conversion service over the internal network, and the converter returns the converted output to XWiki, which stores it as wiki content. The dashed boundary marks the wiki network and the conversion host, which are separate trust zones. Check what crosses that boundary, who can reach the converter, and whether the original file is kept.
Request path for an office upload, with the trust boundary between the wiki network and the conversion host.
What drives resource needs for conversion
Conversion load is set by the documents you send, how many arrive at once, and how many run as a batch. These factors interact, so a sizing plan has to start from your own document mix rather than a general rule. The cards below cover the inputs to measure before you set any capacity.
File size and page count
Larger files take longer to load, lay out and convert, and they hold more memory while the conversion runs. A 300-page report and a two-page memo are different jobs even when both are .docx files. Before sizing, pull a sample of your real files and record their sizes and page counts, then test the largest files you expect to see, not the average. Confirm with your XWiki and LibreOffice setup how a single oversized upload is handled, since that determines whether one file can tie up the service.
Concurrent import count
Memory and CPU demand grow with the number of conversions running at the same time, so the number of users importing at once matters more than the total number of files stored. A wiki team that imports a folder on Monday morning creates a short, sharp peak. Ask your XWiki administrators how many imports a typical day or peak hour produces, then run a timed test at that concurrency on hardware you control. Record queue wait time as well as conversion time, because long waits are the first sign that the service is undersized.
Complex embedded content
Embedded OLE objects, drawings, AutoShapes, pivot tables and spreadsheets with many formulas or conditional formats are expensive to convert. LibreOffice Help notes that some features may not convert cleanly, so these files also need more manual review after import. Inventory how often your documents contain these elements, especially in finance, engineering and procurement libraries. Treat those folders as a separate test set, because a few heavy spreadsheets can dominate the resource profile of an otherwise light import.
Bulk migration batches
A bulk migration converts thousands of files over days or weeks, which turns a short peak into a sustained load. Batch size, the number of parallel workers and the time window for the run all shape the capacity you need. Plan batches by document type and size, run the largest batches off-hours, and watch memory across the whole run rather than only at the start. Ask your migration partner or internal team to state the batch plan and the rollback point before the first batch starts.
Measure in your own environment
No sizing figures for XWiki conversion are supplied here, so the numbers must come from your environment. Build a representative test set, run it on the same container limits, CPU allocation and network path you plan to use in production, and record peak memory, conversion time and failures. Repeat the test after any LibreOffice release change, because maintenance releases can alter conversion behavior. Ask any vendor or partner to show their measurements on comparable files before you accept a capacity estimate.
Questions teams ask before running XWiki conversion
How much does it cost to set up LibreOffice conversion for XWiki?
The software carries no license fee, so the main costs are labor and infrastructure. LibreOffice source code is licensed under the Mozilla Public License v2.0, and The Document Foundation does not provide technical support. Your costs come from people who install, test and patch the conversion service, from the compute capacity it runs on, and from any paid support you choose. One-time costs cover setup and testing. Recurring costs cover patching, monitoring and support. For a quote, ask for effort broken into days by role, the assumed environment, the support terms and what happens when a new LibreOffice release arrives. XWiki SAS lists consulting at 1200 EUR per day, which requires a Business or Enterprise support plan (XWiki pricing).
How long does it take to set up XWiki office conversion?
No researched duration is available for this work, so the timeline depends on your environment and document estate. The main variables are the number of file types you need to convert, the volume and age of the legacy files, whether conversion runs in its own host or container, and how long your security and change approvals take. Testing with a representative sample of your documents usually takes longer than the installation itself, because each complex file type needs a manual check. Ask any partner for a written scope with named milestones, the test sample you will approve, and the acceptance criteria for each milestone before work starts.
What does our team need to provide for the conversion work?
You need to provide a few inputs before the work can move past planning. Provide the XWiki version and deployment method you run, plus an administrator account for the wiki. Provide a host or cluster for the conversion service with enough CPU and memory to run it under your load, and network rules that let XWiki reach it. Provide a sample set of documents from every type you plan to import, including the most complex Word, Excel and PowerPoint files. Decide which Microsoft format LibreOffice should save by default, since administrators set this under Load/Save options. Name an owner for patches, security reviews and sign-off on converted content.
Can our internal team set up LibreOffice conversion without a partner?
Yes, a team can do this without a partner if it has Linux and container administration skills, XWiki administrator access and time for testing. The LibreOffice help documents how Microsoft formats are imported and saved, and it lists the features that may not convert cleanly. The harder part is the ongoing work. Your team must track LibreOffice maintenance releases, since production users can stay on the 26.2 branch only until November 30, 2026, and the newest release is 26.8.1. Because The Document Foundation does not provide technical support, your team is also the first and last line of support for incidents. Decide before you start whether that fits your staffing.
What makes the effort grow for office document conversion?
Effort grows with the complexity of your documents more than with their count alone. LibreOffice help says converted Microsoft Office files need manual reformatting in proportion to their complexity. Features that may not convert cleanly include AutoShapes, revision marks, OLE objects, pivot tables, conditional formatting and some formulas, so documents that use them need more checking. Macros add work too. LibreOffice uses Basic macros rather than VBA, Office VBA macros are kept when a file is edited in LibreOffice and run again in Office, and some Excel VBA scripts run only if you enable that option. Ask for the sample size, the feature inventory of that sample and the number of macro-bearing files in the quote.
How does LibreOffice support differ from enterprise editions?
Community LibreOffice comes with no technical support from The Document Foundation. The LibreOffice business page strongly recommends that schools, institutions and large organizations use enterprise editions from its ecosystem partners. Those editions offer long-term SLAs, technical support and custom features. The Document Foundation also points large deployments to enterprise editions with security updates for three to five years (LibreOffice in business). Ask any vendor which edition they supply, the support hours, the SLA response terms, the security patch cadence and the support end date. Then decide whether your conversion service needs those commitments before you go live.
Should conversion run outside the XWiki container?
Running conversion as a separate service lets you size, patch and monitor it without changing the XWiki container. That separation also means the conversion host has its own attack surface, network path and logs to manage. Uploaded Office files are untrusted input, and macro-bearing files need particular care. Limit the conversion host so only XWiki can reach it, restrict which file types it accepts, and log each conversion job. Confirm with the XWiki documentation how the conversion host is configured for your XWiki version, and test the setup with a file set that includes malformed and macro-bearing documents before you approve it.
How DeployOpen works on this
DeployOpen plans and deploys the LibreOffice conversion service that XWiki uses for office import, inside the infrastructure you control. The work starts with a written scope that sets which document types, volumes and environments are covered, then moves through build, testing, handover and ongoing support.
How we scope
- Written scope fixes which office formats, document volumes and XWiki instances the conversion service must serve.
- We record where the LibreOffice server runs, which network paths XWiki may use, and who owns the host.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before any build work starts.
How we build
- We install and configure the LibreOffice conversion service on hosts or containers you provide, separate from the XWiki container.
- We size CPU and memory against your largest expected files and set limits so conversions cannot starve XWiki.
- We test sample imports of your real document set and record which formats need manual reformatting after conversion.
How we hand over
- You receive configuration files, network rules, sizing notes and a runbook for restarting and monitoring the conversion service.
- The handover documents known conversion limits, such as complex tables, revision marks and embedded objects, with the agreed fallback for each.
- We walk your platform team through the runbook so they can operate the service without DeployOpen involvement.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, including checks after each LibreOffice release.
- Upgrade work re-runs the agreed sample import set so you can see format regressions before a new version reaches users.
- Support covers the conversion path and its integration with XWiki, and is confirmed in the written scope for your environment.

