ComOffice SDK

Put Word, Excel, and PowerPoint Files to Work in Your Own Apps and Systems

ComOffice is the document engine behind LynxOffice. Read, edit, save, and render DOCX, XLSX, and PPTX files, and convert them to PDF, all locally, for your apps, internal systems, and AI.

.docx · .xlsx · .pptxRuns on the device

Free to evaluate until 2027-01-01: iOS and macOS · Windows · Linux · Servers

Swift

import DocumentCore

try SDKLicense.activate(key: licence)

// paragraphs, runs, tables and sections
let scene = try DocumentParser.parse(docxAt: url)
print(scene.body.count, "body elements")

// only the parts you changed are rewritten
try DocumentWriter.save(document: scene,
                        originalURL: url,
                        destinationURL: out)

One Engine, Three Ways to Build

The files your customers already use, read, changed, and drawn inside your own software. The SDK makes no network call, so a document goes only where your software sends it.

In Your App

Open, edit, and preview Office files in your iPhone, iPad, and Mac apps.

In Your Internal Systems

Create document templates, generate reports, extract data from spreadsheets, and batch-convert folders of documents to PDF within your applications. Available on macOS, Windows, Windows Server, and Linux.

With Your AI

Enable your AI assistants and agents to read and edit Office documents, saving changes directly to the original files. On Windows and Linux, get started with the ComOffice MCP server.

See What You Can Build

Each animation shows what happens when you run the accompanying code on the sample files.

Document generation

Fill a Contract Template

For CRM, HR, legal, and internal tools.

Swift

try SDKLicense.activate(key: licence)

var scene = try DocumentParser.parse(
    docxAt: template)
for (placeholder, value) in values {
    scene = WordSceneEditor.replaceAll(
        placeholder, with: value, in: scene,
        caseSensitive: true).scene
}
try DocumentWriter.save(
    document: scene, originalURL: template,
    destinationURL: output)
A Word contract template with a real table: each placeholder is filled wherever it appears, and 9 of the file’s 10 parts are saved byte for byte.

Previews

Show Thumbnails and Export PDFs

For file managers, cloud drives, and chat apps.

Swift

try SDKLicense.activate(key: licence)

let files: [ParsedDocument] = [
    .word(try DocumentParser.parse(
        docxAt: docx)),
    .workbook(try SpreadsheetParser.parse(
        xlsxAt: xlsx, rasterizer: nil)),
    .slides(try SlideParser.parse(
        pptxAt: pptx)),
]
for file in files {
    let pages = try DocumentRenderer
        .pageCount(of: file)
    let thumbnail = try DocumentRenderer
        .image(of: file, page: 0, scale: 0.5)
    show(thumbnail, pages)
}
let pdf = try DocumentRenderer.pdfData(
    of: files[0])
Thumbnails of a Word document, an Excel workbook, and a PowerPoint deck, drawn on the device with their page counts; then the document is exported to a PDF of 2 pages.

Spreadsheet calculation

Recalculate a Quote

For quotes, finance, and inventory.

Swift

try SDKLicense.activate(key: licence)

var book = try SpreadsheetParser.parse(
    xlsxAt: quote, rasterizer: nil)
book = WorkbookSceneEditor.settingCellValue(
    .number(25), formula: nil, at: quantity,
    sheetIndex: 0, in: book)!
// A cached result is never recomputed, so
// clear each formula's, then evaluate them.
let formulas = book.sheets[0].cells.filter {
    $0.formula != nil }
for cell in formulas {
    book = WorkbookSceneEditor.settingCellValue(
        .empty, formula: cell.formula,
        at: cell.reference, sheetIndex: 0,
        in: book)!
}
let context = SceneWorkbookContext(
    scene: book, homeSheetIndex: 0)
for cell in formulas {
    let value = Formula.evaluate(
        cell.formula!, in: context)
    book = WorkbookSceneEditor.settingCellValue(
        value, formula: cell.formula,
        at: cell.reference, sheetIndex: 0,
        in: book)!
}
try SpreadsheetWriter.save(
    workbook: book, originalURL: quote,
    destinationURL: output)
The quantity in a quote goes from 10 to 25, every formula that depends on it is recalculated, and the total goes from $439.02 to $796.23.

AI Integration

Review Contract Changes with an AI Assistant

For teams connecting document workflows to AI assistants.

In this demo, an AI assistant uses LynxOffice's MCP server to list tracked changes and comments in a contract, accept the changes, and reply to a comment. Each edit goes to a new copy, and the original stays as it was. The panel shows the actual MCP requests and responses.

You can use ComOffice, the document engine behind LynxOffice, to build similar workflows for your own AI assistant.

Explore the LynxOffice MCP Server

Recorded from lynxoffice-mcp 1.1.2: the assistant’s four tool calls and the server’s replies, and the contract before and after, drawn by the engine.

Every value, image, and line of code above comes from a real run of DocumentCore and AppleRender at engine 1.13.0.

Built on the Engine Behind LynxOffice

LynxOffice, KDAN’s office suite for the Mac, opens, edits, and saves Word, Excel, and PowerPoint files with this engine. Its MCP server, which lets AI assistants read and edit documents, is built on it too.

What the Engine Does There

  • Opens .docx, .xlsx, and .pptx files, and saves them back in the same format
  • Keeps every edit in its document model
  • Draws each page
  • Calculates formulas

What LynxOffice Adds

  • Its interface: the editors you see
  • Its AI features
  • PDF editing, which uses Apple’s PDFKit rather than the engine

See LynxOffice

Platforms

Each platform has its own SDK, built on the same engine.

iOS and macOS

Two Swift frameworks for iPhone, iPad, and Mac apps: read, edit, save, and render .docx, .odt, .xlsx, and .pptx on the device.

Available · iOS and iPadOS 16+ · macOS 13+

Learn more

Windows

A .NET library for Windows apps and tools: open, edit, save, and render .docx, .odt, .xlsx, and .pptx, and export PDF.

Available · Windows 11 and Windows Server, x64 · .NET 8+

Learn more

Servers

Use one .NET SDK on Windows Server and x64 Linux to convert, render, and edit .docx, .odt, .xlsx, and .pptx files in services and containers, and display documents in web applications.

Available on Windows Server and Linux · .NET 8+

Learn more

The Web

Display Word, Excel, and PowerPoint documents in your web applications with a server-side, view-only solution. ComOffice renders documents on your server, while the browser displays the results, with text people can select, copy, and search. Get started with the ready-made web viewer and HTML, React, and Vue examples. Document editing runs on the server. A browser-native SDK is in development; contact us if you need it.

Web viewer: available

In-browser SDK: in development

Learn more

What the Engine Does

The same engine LynxOffice runs on, without the app around it.

Reads and Writes the Real Files

Opens .docx, .xlsx, and .pptx into a structured model and saves them back in the same format. Parts you did not change are carried over untouched. It also opens and saves OpenDocument text (.odt).

Renders Pages

Draws any page of a document, workbook, or deck to an image or to PDF.

Calculates Formulas

Evaluates spreadsheet formulas, with Excel-style error values returned as values.

Stays on the Device

The SDK makes no network calls, even to verify the license. Document processing stays within your software.

Frequently Asked Questions

Who is ComOffice for?

ComOffice is for developers building apps, internal tools, or AI workflows that need to read, create, edit, or render Office files.

How is ComOffice licensed?

Evaluate the SDK free until 2027-01-01, under the Service Terms. Evaluation keys are included with the releases for iOS and macOS, and for Windows and Linux. For commercial licensing, describe your project in the contact form or email sales@comofficekit.com.

Which platforms are supported?

ComOffice is available for iOS, iPadOS, macOS, Windows, Windows Server, and Linux. For web applications, the available web viewer displays documents rendered by your server; editing is handled server-side. The viewer includes HTML, React, and Vue examples. A browser-native SDK is in development.

Can I run it on a server?

Yes: on Windows Server 2022 and 2025, on x64 Linux, and in Windows and Linux containers. See ComOffice on servers for worker processes, limits, and showing documents in a browser. A Mac can also run it inside your own systems.

What file formats can ComOffice convert?

Convert .docx, .odt, .xlsx, .xlsm, and .pptx files to PDF or page images on supported platforms. On Windows and Linux, you can also export worksheets to .csv or .tsv and open these files as workbooks. Legacy .doc, .xls, and .ppt formats are not supported.

Can it process files in batches?

Yes. The sample applications demonstrate batch conversion of folders to PDF. On Windows Server and Linux, a supervisor can run multiple worker processes concurrently, including in containers. A command-line tool provides batch conversion on macOS. See ComOffice on servers for deployment guidance.

Can I process documents from untrusted sources?

ComOffice is designed to process third-party documents without executing embedded macros. The SDK makes no network calls. In server deployments, oversized decompression is rejected before files are written, and separate worker processes help isolate crashes to individual documents. See ComOffice on servers for deployment guidance.

Can I integrate ComOffice with an AI assistant?

Yes. AI assistants and agents can use ComOffice tools to read and edit Word, Excel, and PowerPoint documents, with changes saved to the original files. On Windows and Linux, the ComOffice MCP server exposes these capabilities through MCP and a command-line interface built on the .NET SDK. LynxOffice's MCP server uses the same document engine.

What does it not do?

It does not open or edit PDF files, although it renders documents to PDF, and it has no user interface of its own: you build the screens, and the SDK supplies the document model and draws the pages.

Talk to Us About ComOffice

Tell us what you are building and which platforms you need, and our sales team will get back to you. You can also write to sales@comofficekit.com.