What It Does
One .NET library. Open a document, change it, save it, and draw its pages.
Open, Edit, and Save
Opens .docx, .xlsx, .xlsm, .pptx, .csv, and .tsv files, saves them in place or as a new file, and creates blank documents, workbooks, and decks.
Page Images, Text, and PDF
Renders any page to a PNG image at 24 to 600 dpi, and exports a whole document to PDF. For each page it also gives the text drawn there and where it sits, so your app can let people select, copy, and search over the image.
Word Documents
Reads a document’s text, replaces text throughout it, and compares two documents into a third that shows the differences as tracked changes.
Workbooks
Lists the sheets, reads and sets what a cell holds, and reads the value a formula calculates, as the cell shows it.
Where It Runs
Windows Server and Linux, on x64, from the same package.
Windows Server
Windows Server 2022 and 2025, tested, and Windows containers on their full images and on the smaller image of 2025. ComOffice for Windows has the details.
Linux
x64 Linux with glibc 2.34 or later, tested on Ubuntu 24.04, Debian 12, and Red Hat Enterprise Linux 9, and Linux containers on Microsoft’s .NET 8 runtime image. ComOffice on Linux has the details.
One Package
The same .NET package and the same API on both, so a service moves between them unchanged. A license names the platforms it covers.
Running It on a Server
What the guide to servers sets out, with a sample of a supervisor and its workers.
Worker Processes
Run one worker process for each document converted at once, usually one per processor. The engine lays out one document at a time within a process, so threads do not make it faster, and a document that crashes its worker takes no other job with it.
Limits on Every Job
A document that inflates far past its size is refused before anything is written. Disk has a quota, each call can be cancelled and then changes nothing, and a container or job object caps memory.
Fonts
Install the fonts your documents use. Each document reports any font it was drawn without, so a page that fills differently from the author’s is explained.
A Web Page
Your web pages can show documents today, view only. Your server draws each page with ComOffice, and the browser shows it: the engine stays on the server, and the browser receives only each page's image and text, and the document as PDF. The web viewer is ready to use: a component, the service it calls, and starters for HTML, React, and Vue. It lays each page's text over the image, so people can select, copy, and search it, and text-layer="none" shows images only. To change a document, your service edits it with the SDK.
Frequently Asked Questions
Which servers does it run on?
Windows Server 2022 and 2025, and x64 Linux with glibc 2.34 or later, tested on Ubuntu 24.04, Debian 12, and Red Hat Enterprise Linux 9, each with .NET 8 or later. Both run it in containers too.
Can I show documents in a web page?
Yes, today, view only. The web viewer gives your page a ready-made component, the service it calls, and starters for HTML, React, and Vue: your server draws each page with ComOffice, and the browser shows it, with text people can select, copy, and search. To change a document, your service edits it with the SDK. Add your own sign-in before the service faces the internet. An SDK that runs in the browser itself is in development.
How do I license it on a server?
Keep the license in memory and activate it at the start of every worker, since a container keeps nothing between runs. A license names the platforms it covers, so a server needs one that covers its platform.
How do I get it?
Download it from GitHub: each release attaches the package, and its README publishes a free evaluation key, valid until 2027-01-01. For a license, tell our sales team about your project on the contact form, or write to sales@comofficekit.com.
Can it open PDF files?
No. ComOffice works with .docx, .xlsx, .xlsm, .pptx, .csv, and .tsv files and exports them to PDF. It does not open or edit PDF documents.
Ask About ComOffice for Servers
Tell us what you are building, and our sales team will get back to you. You can also write to sales@comofficekit.com.