ComOffice SDK · Linux

Office Documents on Your Linux Servers

ComOffice runs on x64 Linux from the same .NET package as ComOffice for Windows, with the same API. Open, edit, and save Word, Excel, and PowerPoint files, render their pages to images, and export them to PDF, on a server or in a container.

.NET 8+Linux x64glibc 2.34+C#

Free to evaluate until 2027-01-01: download it from GitHub.

C#

using ComOfficeKit;

License.Activate(key);

using var doc = Document.Open("report.docx");
for (int i = 0; i < doc.PageCount; i++)
    doc.RenderPage(i, dpi: 96)
       .SavePng($"page-{i + 1}.png");
doc.ExportPdf("report.pdf");

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.

What a Linux Machine Needs

Nothing but .NET, and one library the distribution already carries.

x64 Linux

Linux on x64 with glibc 2.34 or later, tested on Ubuntu 24.04, Debian 12, and Red Hat Enterprise Linux 9. Distributions built on musl, such as Alpine, are not supported, nor are older ones such as Red Hat Enterprise Linux 8.

.NET and libxml2

.NET 8 or later, and the distribution’s own libxml2, which many images already have. Nothing else is installed.

One Package

The package Windows uses, with the same API. Publish with dotnet publish -r linux-x64, and the engine goes beside your application.

The License

Activate it as on Windows, with a license that covers Linux. On a server, keep it in memory and activate it at every start.

What Differs from Windows

What a document can do is the same. Fonts, and a few kinds of picture, are not.

Fonts

Windows draws in the fonts installed on it. On Linux the package carries Carlito and Caladea, with the widths of Calibri and Cambria; install Liberation for Arial, Times New Roman, and Courier New, and Noto Sans CJK for Chinese, Japanese, and Korean. A document reports each font it was drawn without.

Pictures

Page images and PDFs draw pictures in PNG, JPEG, GIF, and BMP. TIFF, EMF, and WMF pictures are left out on Linux.

Frequently Asked Questions

How do I get ComOffice on Linux?

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.

Is it the same SDK as ComOffice for Windows?

Yes. One .NET package carries the engine for Windows and for x64 Linux, with the same API and the same API reference. A license names the platforms it covers, so a Linux server needs one that covers Linux.

Can I run it in a container?

Yes. The guide to servers runs it in a Linux container on Microsoft’s .NET 8 runtime image, with a sample Dockerfile, and covers worker processes, limits, and fonts. See ComOffice on servers.

Does it run on Arm or on Alpine?

No. It runs on x64 Linux with glibc 2.34 or later. Arm64, and distributions built on musl such as Alpine, are not supported.

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 on Linux

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