ComOfficeKit SDK · iOS and macOS

Office Documents Inside Your iPhone, iPad, and Mac App

ComOfficeKit 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

Quoted and delivered by our sales team. There is no self-serve purchase.

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, .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.

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, ever. Your licence is a signed line verified on the device, so a document never leaves your app, and a sandboxed app needs no network entitlement for licensing.
  • Typed errors. A file the engine cannot read produces an error that names the part and the reason; document input never crashes your app.
  • Safe to run in parallel. Scenes are Sendable value types, and the parsers, writers, and renderer are stateless, so different documents can be processed at the same time.
  • Nothing downloaded at build time. The SDK arrives as a self-contained folder: add it as a local Swift package, or drop the two XCFrameworks into your target.

Platforms

iOS 16 and iPadOS 16 or later, and macOS 13 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

ComOfficeKit 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, for Now

This SDK runs on iOS, iPadOS, and macOS. Other platforms will have SDKs of their own; tell us which one you need.

Frequently Asked Questions

How do I get ComOfficeKit?

Write to support@comofficekit.com. The SDK is quoted and delivered by our sales team; there is no store and no self-serve purchase. It arrives as a folder, with a licence issued under your contract.

Does it need a network connection?

No. The licence is verified on the device and the SDK makes no network call at any point, so documents stay inside your app.

Which versions of iOS and macOS does it support?

iOS and iPadOS 16 or later, and macOS 13 or later.

Can it open PDF files?

No. ComOfficeKit 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 ComOfficeKit

Tell us what you are building and which platforms you need at support@comofficekit.com, and we will get back to you.