2026-12-03
Document middleware · Open-source components · OnlyOffice · Online preview · In-house integration · Filez
Download the Filez intelligent document whitepaper
Bottom line: this is not really an argument between "open source" and "commercial." It is a question of who carries the tuning and the long-term maintenance of the document engine. Open-source components save you the license fee, not the engineering — layout fidelity, fonts and CJK composition, tracked changes, concurrency, security and vulnerability follow-up all still need people. Buying middleware buys that capability and that responsibility. If the team has no intention of keeping that capability alive for years, buying is usually the cheaper path.
Quick answers
Scope note: this article offers a decision framework and an acceptance method. It is not a purchasing recommendation, a technical design or a selection verdict. Open-source projects such as OnlyOffice and LibreOffice are named only to identify a technical path; no quality judgment is made and no vendor pricing or commercial terms are discussed. No figures are given for concurrency, latency, resource footprint or staffing — those must be measured. Licence compliance, China's Cybersecurity Classified Protection (MLPS) and commercial cryptography assessment are mentioned as boundaries only; the judgment belongs to legal and security teams.
Start with what each path actually hands you.
Integrating open-source components gives you a working editing engine and a preview component, plus community documentation. Everything around it — fonts, layout tuning, conversion, authentication, concurrency, vulnerability watch, upgrade tracking — stays with you.
Buying document middleware gives you a service you can connect to, plus an undertaking that someone is accountable when the capability falls short. The business-side interface work, permission-model alignment and layout acceptance are still yours.
The difference is not whether an editor exists. It is who carries the ring of work around the editor. The table lays that ring out — the middle column is how hard it looks, the right column is how hard it turns out to be.
| The work | How it looks | How it turns out |
|---|---|---|
| Get it running, open a file | Some configuration | Usually within a week; not the hard part |
| Fonts and CJK composition | Install a font pack | Missing fonts swap glyphs and break line breaks; compare document by document |
| Layout fidelity (pagination, cross-page tables) | Adjust parameters | On-screen and exported PDF diverge; often solved by trial and error |
| Tracked changes, comments, audit trail | Comes with the component | Must be wired into the business system and extractable for auditors |
| Concurrency and scale-out | Add machines | Sessions, file locks and conversion queues need design; only load tests settle the numbers |
| Security (macros, external links, embedded objects) | Flip a switch | Close each attack surface and be able to prove it to the security team |
| Upgrades and vulnerability follow-up | Patch regularly | Upgrades shift layout; effectively a full re-acceptance each time |
Watch the last row: in-house cost is not a one-off investment but a loop — every upgrade means re-verifying everything. Many projects sail through year one and then take a concentrated hit after one upgrade in year two.
What it saves is long-term engine-side investment: layout tuning, font adaptation, the conversion chain, concurrency architecture, security hardening, vulnerability follow-up, upgrade verification. That maintenance curve is steep and produces no business value — it only lets business run.
What it does not save is business-side integration: call paths must change, attachments must become first-class file objects, permissions must line up across two layers, and real documents must be used to accept layout. That work does not disappear because you bought something; it shifts from building the engine to connecting one.
Two things cannot be bought either: your own understanding of the business (which documents must be strictly controlled, which may be loose) and the internal rule decisions (who arbitrates the master copy, where permissions are defined). Both must be settled inside the project; a vendor can only advise.
These six are not scoring items. They are hints about where each side is more likely to trip. Check your own situation line by line; the lean emerges on its own.
| Dimension | Leans in-house when… | Leans buy when… |
|---|---|---|
| Document complexity | Plain text and simple tables; seeing and editing is enough | Official-document layout, contract redlines, cross-page tables; the final copy must not drift |
| Scale and peak | Few users, gentle peaks, queuing acceptable | Sharp peaks at fixed times; "add a machine" will not fix it |
| Team capability | A stable front-end and ops team willing to maintain it for years | R&D is business-focused; nobody owns the document engine |
| Compliance and deployment | Deep customization needed; full autonomy required | MLPS, cryptography assessment or domestic-stack adaptation; delivery and support expected |
| Number of systems | Only this one system needs it | Three or more systems need it, and behaviour should match |
| Time pressure | Features can ship in stages; tuning can take time | Fixed acceptance dates; no room for repeated trial and error |
Of the six, team capability and time pressure decide most cases. The real risk in building is not technical difficulty but nobody maintaining it after launch — the document engine is the kind of component that keeps failing, and its maintenance demand does not move in step with business demand.
Line one, licence and subscription. Near zero for open source; a clear outflow for commercial. It is the easiest line to count, and the easiest to mistake for the whole bill.
Line two, people. Building needs someone to write it, tune it and watch it — and the count should span three years, not three months, because tuning and upgrades continue. This line usually dwarfs line one.
Line three, rework and incidents. Re-typesetting after layout drift, stutter when concurrency was never load-tested, regressions introduced by an upgrade. None of it shows in a budget, all of it shows in complaints and late nights.
Line four, exit cost. If you change approach in three years, how do historic documents, revision records and permission relationships migrate? In-house designs usually exit worse, because the interfaces are yours and nobody else can plug in.
Read together, the conclusion often flips: open source is cheapest in year one and dearest in year three; commercial is dearest in year one and flattest by year three.
What actually ships is rarely pure build or pure buy. It is usually one of these three.
Path one: build preview, buy editing. Preview is comparatively static — show the file correctly, no collaboration, no audit trail; editing is the hard half. Many teams cut their workload substantially this way and keep the first-screen experience in their own hands.
Path two: split by document type. Internal notices and reports use a light path (read-only, simple edits); official documents, contracts and controlled files go through the middleware. The price is two entries to maintain; the benefit is not paying full price for low-frequency scenarios.
Path three: pilot first, decide after. One system, one document type, run layout, tracked changes, concurrency and security on real files, then decide whether to keep building or switch to buying. It is the safest path because it replaces guessing with measuring.
All three share one prerequisite: list the documents that must be strictly controlled first. Without that list, any option degrades into "it opens everything and nobody dares use it."
These seven items are the shared floor for building and buying alike. Use real documents, real concurrency and real network conditions — not demo samples.
| Item | How to test | What failure looks like |
|---|---|---|
| Layout fidelity | Take real official documents and contracts; compare pagination and tables on screen, in exported PDF and in print preview | Page numbers shift, tables break across pages, fonts get substituted |
| CJK typesetting | Check punctuation compression, line spacing, numbering levels, full-width and half-width mixing | Punctuation lands at line start, numbering breaks, spacing jumps |
| Tracked changes | Two people revise in turn, then accept and reject, then revert once | Revisions lost, authorship indistinguishable, formatting broken on reject |
| Peak concurrency | Open and convert simultaneously at business peak; watch queueing and failure rate | Conversion times out, session locks are never released, restart needed |
| Large files | Use a real-sized file and drop the connection mid-way, then resume | File will not open, resume fails, content is damaged |
| Attack surface | Try macros, external links, embedded objects, malformed file headers | External links fire or macros execute during preview |
| Audit trail | Export every action above into one readable list | Only views are logged, fields missing, users unmappable |
Items one and two are the easiest to be fooled on by a demo. Demos use the tidiest documents; the real test is the oddly formatted legacy file the business side hands you and insists must render correctly.
The licence is near zero; the engineering is not. Layout tuning, font adaptation, concurrency architecture, security hardening and upgrade verification all take people, continuously. The usual overrun comes from treating that as a one-time pre-launch task.
Usually not. Preview is the lighter path, and building it or integrating a preview component is normally feasible. Only when formats are extremely varied, high fidelity is required and several systems must present identically does a shared capability layer pay off.
Judge by document complexity, not by system count. One system whose documents are contracts and official documents, requiring tracked changes and audit usually costs less to buy; one system of internal reports usually costs less to build.
On-premise deployment is not the difficulty; producing compliance evidence is. MLPS and cryptography assessment look at deployment architecture, identity and permissions, audit and encryption, supply-chain safety, and someone must assemble the material and support the assessment. This article does not interpret the rules; leave the verdict to security teams and assessment bodies.
Yes. The middleware supplies editing and preview capability; how the UI embeds in your system, how buttons are arranged, how it joins the workflow is your call. "Buy it and write no code" is an unrealistic expectation.
Run the seven acceptance items on your own documents. Look hardest at layout fidelity and CJK typesetting — once those fail, nothing else matters, because the business side will say "this is not my file" at first glance.
It depends on whether files and metadata are stored independently. If files live only in a proprietary format inside your system, migration hurts; if the original, versions and revision records are kept in common formats from day one, anyone can take over.
Realistic, provided the number of entry points is controlled. "Build preview, buy editing" is a common combination; the risk is that permissions and audit trails do not reconcile across two entries. The precondition is: one master copy of every file, permissions defined in exactly one place.
Back to the question: integrate open-source components, or buy document middleware?
The answer turns on whether you are willing to keep the document engine alive for years. If you are, and document complexity is modest, building is entirely viable and buys you more autonomy; if you are not, or the documents involve official-document layout, contract redlines and audit trails, buying is cheaper — because it outsources the piece that is hardest to maintain.
Either way, list the documents that must be strictly controlled, then run the seven acceptance items. Do both and the choice stops being a matter of feel; skip them and both options converge, in year two, on the same sentence: we didn't think of that.
Read the Filez intelligent document whitepaper
About Filez
Filez is Lenovo's collaboration brand, focused on end-to-end intelligent collaboration across files, content, and knowledge. Its portfolio spans enterprise cloud drive, online documents, and an unstructured data platform. The enterprise cloud drive was launched in 2006 — the earliest developed and longest operated product of its kind in China — and online documents followed in 2017 as a domestic first.
With nearly two decades behind it, Filez's market standing continues to be recognized by authoritative institutions: internationally, it was included in Gartner's Magic Quadrant™ for Document Management as the only vendor from East Asia in that report; domestically, IDC's China Intelligent Enterprise Content and Knowledge Platform Market Share, 1H26 ranks Filez first in the private-deployment segment.
Disclaimer: this article discusses a decision framework and an acceptance method for building versus buying online preview and editing capability. It does not constitute a purchasing recommendation, a technical design, legal advice or a compliance conclusion. Open-source projects are named only to identify a technical path, without judging their quality and without discussing any vendor's pricing or commercial terms; licence compliance, MLPS and commercial cryptography assessment are noted as boundaries only, with no interpretation of clauses, and the verdict rests with applicable law, regulators and professional assessment bodies. Concurrency, latency, resource footprint and staffing must be established by testing and project conditions, and no such figures are given here; product features and interfaces are subject to the vendor's latest official documentation.