ComOffice SDK · iOS and macOS

Office Documents Inside Your iPhone, iPad, and Mac App

ComOffice is the document engine behind LynxOffice, as two Swift frameworks for your own app. Read, edit, and save Word, Excel, and PowerPoint files, and render their pages to images or PDF, entirely on the device.

iOS 16+macOS 13+SwiftWorks offline

Free to evaluate until 2027-01-01.

Swift

import DocumentCore
import AppleRender

// verified on the device; no network
try SDKLicense.activate(key: licence)

let scene = try DocumentParser.parse(docxAt: url)
let doc = ParsedDocument.word(scene)

let n = try DocumentRenderer.pageCount(of: doc)
let image = try DocumentRenderer.image(
    of: doc, page: 0, scale: 2)
let pdf = try DocumentRenderer.pdfData(of: doc)

What Is in the SDK

Two Swift frameworks. DocumentCore reads and writes the files; AppleRender draws their pages.

DocumentCore: Read, Edit, and Save

Parses .docx, .odt, .xlsx, and .pptx into structured, immutable scenes: paragraphs, runs, tables, and sections; sheets, cells, and formulas; slides and shapes. Derive an edited scene and save it: only the parts you changed are regenerated, and everything else in the file is carried over untouched. It also writes OpenDocument text, and turns Word, Excel, and PowerPoint templates (.dotx, .xltx, .potx) into new documents. In a deck, shapes inside groups, and whole groups, can be moved and resized, unless a group is rotated or flipped.

AppleRender: Pages, Images, and PDF

Lays documents out with Core Text and Core Graphics and renders any page to an image or to PDF. Word documents flow into pages, spreadsheets paginate for print sheet by sheet, and each slide is a page.

A Formula Engine

Evaluates spreadsheet formulas. Excel-style error values such as #DIV/0! and #REF! come back as cell values, never as exceptions.

Fonts Included

Metric-compatible fonts for Calibri and Cambria ship with the SDK, so documents set in them lay out at the right size. Other fonts come from the system, with a fallback cascade that handles Chinese, Japanese, and Korean text.

Built to Ship in Your App

What you would otherwise have to check for yourself before putting a document engine in front of customers.

  • No network connection required. The SDK verifies signed licenses locally, and document processing stays within your app. Sandboxed apps do not need network entitlements for license verification.
  • Structured errors. Unsupported or unreadable files return errors identifying the affected part and reason for failure.
  • Concurrent processing. Scenes are Sendable value types, and stateless parsers, writers, and renderers let you process separate documents concurrently.
  • Two integration options. Add the GitHub package using Swift Package Manager, which downloads the release frameworks and verifies their checksums, or download the release ZIP containing the frameworks, documentation, and sample projects and add it as a local package.

Platforms

iOS 16 and iPadOS 16 or later, and macOS 13 or later. You build with Xcode 26 or later.

Formats

.docx, .xlsx, .xlsm, and .pptx in; the same formats, page images, and PDF out. An .xlsm workbook’s macros are kept byte for byte and never run.

Documentation

An API reference for both frameworks, with guides to getting started, licensing, errors and threading, rendering, and working with Word, spreadsheet, and presentation files. Read it online.

What It Does Not Do

So you can tell early whether it fits.

No PDF Editing

ComOffice renders documents to PDF. It does not open, annotate, or edit PDF files.

No User Interface

It has no editor or viewer screens. You build the interface; the SDK supplies the document model and draws the pages.

Apple Platforms Only

This SDK runs on iOS, iPadOS, and macOS. Windows and Linux have a .NET SDK of their own: see ComOffice for Windows and ComOffice on Linux. Tell us which other platform you need.

Frequently Asked Questions

How do I get ComOffice?

Add it from GitHub with Swift Package Manager. Its README publishes a free evaluation key, valid until 2027-01-01, so you can try the whole SDK without signing up. For a license, tell our sales team about your project on the contact form, or write to sales@comofficekit.com.

Does it need a network connection?

No. The SDK verifies the license on the device and makes no network calls. Documents stay within your app.

Which versions of iOS and macOS does it support?

iOS and iPadOS 16 or later, and macOS 13 or later. To build with it, you need Xcode 26 or later: Xcode 16 cannot link its frameworks.

Can it open PDF files?

No. ComOffice works with .docx, .xlsx, .xlsm, and .pptx files and renders them to PDF. It does not open or edit PDF documents.

Is it the same engine as LynxOffice?

Yes. LynxOffice is built on the same document engine, so the SDK reads and renders files the way the app does.

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.