/OOXML

Office Open XML (OOXML) formats (.xlsx, .docx, .pptx) for Swift

Primary LanguageSwiftMIT LicenseMIT

OOXML

Create Office Open XML (OOXML) formats (.xlsx, .docx, .pptx) file for Swift

Installation

To install OOXML, add the following dependency to your Package.swift file:

dependencies: [
    .package(url: "https://github.com/yourusername/ooxml.git", from: "1.0.0")
]

Usage

Importing the module

import OOXML

Creating an XLSX file

let filePath = "/Users/lixu/demos/\(UUID().uuidString).xlsx"
let xlsxFile = try XLSXFile(filepath: filePath)

Creating a DOCX file

let filePath = "/Users/lixu/demos/\(UUID().uuidString).docx"
let docxFile = try DOCXFile(filepath: filePath)

Creating a PPTX file

let filePath = "/Users/lixu/demos/\(UUID().uuidString).pptx"
let pptxFile = try PPTXFile(filepath: filePath)

Running Tests

To run the tests, use the following command:

swift test

License

This project is licensed under the MIT License - see the LICENSE file for details.