# Apple iWork

Read Pages, Numbers, and Keynote packages safely, then opt in to focused Word, Excel, or PowerPoint conversion adapters.

**Packages**

- [OfficeIMO.IWork](https://www.nuget.org/packages/OfficeIMO.IWork) `dotnet add package OfficeIMO.IWork`

**Works with**

- .NET

**Target frameworks**

netstandard2.0, net8.0, net10.0, net472

**APIs**

- [`IWorkSourceDocument`](/api/iwork/officeimo-iwork-iworksourcedocument/)
- [`IWorkConversionOptions`](/api/iwork/officeimo-iwork-iworkconversionoptions/)
- [`OfficeConversionReport`](/api/core/officeimo-officeconversionreport/)
- [`IWorkConversionMode`](/api/iwork/officeimo-iwork-iworkconversionmode/)
- [`IWorkPagesProjection`](/api/iwork/officeimo-iwork-iworkpagesprojection/)
- [`NumbersToExcelResult`](/api/excel-iwork/officeimo-excel-iwork-numberstoexcelresult/)

**Limits**

[OfficeIMO.IWork support matrix](/compatibility/#package-iwork)

**Data**

- [OfficeIMO.IWork API index](/api/iwork/index.json)
- [Capability catalog (JSON)](/data/capabilities.json)

## Choose the package boundary

`OfficeIMO.IWork` is the bounded source package for modern Apple Pages, Numbers, and Keynote files. It does not add Word, Excel, or PowerPoint as dependencies.

```shell
dotnet add package OfficeIMO.IWork
```

Install a destination adapter only when the application needs that conversion:

```shell
dotnet add package OfficeIMO.Word.IWork
dotnet add package OfficeIMO.Excel.IWork
dotnet add package OfficeIMO.PowerPoint.IWork
```

The default `OfficeIMO.Word`, `OfficeIMO.Excel`, and `OfficeIMO.PowerPoint` packages do not depend on iWork. Each adapter brings together the bounded source reader and exactly one Office destination package.

## Read and inspect an iWork source

```csharp
using OfficeIMO.IWork;

IWorkSourceDocument source = IWorkSourceDocument.Load("report.pages");
IWorkPagesProjection pages = source.ReadPages();

Console.WriteLine(source.Kind);
Console.WriteLine(pages.Paragraphs.Count);
```

The reader accepts ZIP packages, directory bundles, and packages with a nested `Index.zip`. It bounds package, archive, decoded-text, table, cell, image, and formula work and does not execute embedded content or fetch external resources.

## Convert through an opt-in adapter

```csharp
using OfficeIMO.IWork;
using OfficeIMO.Excel.IWork;

IWorkSourceDocument source = IWorkSourceDocument.Load("budget.numbers");
using NumbersToExcelResult result = source.ToExcelResult(
    new IWorkConversionOptions { Mode = IWorkConversionMode.Auto });

Console.WriteLine(result.Report.ProjectionKind);
Console.WriteLine(result.HasLoss);
result.Value.Save("budget.xlsx");
```

Load the source with `IWorkSourceDocument.Load`, then use `ToWord`, `ToExcel` or `ToPowerPoint` (with an optional `out OfficeConversionReport`) and `SaveAsWord`, `SaveAsExcel` or `SaveAsPowerPoint`. `ToWordResult`, `ToExcelResult` and `ToPowerPointResult` also expose the typed projection, diagnostics, preserved source records, producer build history, and the exact editable or visual-fallback result.

## Preservation boundary

OfficeIMO reconstructs supported content as editable DOCX, XLSX, or PPTX. Unsupported and partially consumed records remain available in the bounded source model and are reported as conversion loss. `IWorkConversionOptions.Mode` chooses editable, automatic, or visual destination representation without changing how the source is read. A visual preview is not presented as editable content.

Separate native creation models and preservation edit sessions in `OfficeIMO.IWork` provide bounded Pages, Numbers and Keynote writing. See the [iWork support matrix](https://github.com/EvotecIT/OfficeIMO/blob/master/Docs/officeimo.iwork-support-matrix.md) for the tested producer corpus, exact semantic coverage, limits, and known boundaries.

<!-- PowerForge markdown source sha256:DA4F293EF3A943D63640435EC4A4FCF16302182FDC0BF0A781CF102C92E159FF; title=True -->

<!-- PowerForge markdown artifact sha256:4AD0A1FA1F163E03E799115890578A415294268B3BEFE7D5DF61B4EB97B191B5 -->
