Create Office Open XML (OOXML) formats (.xlsx, .docx, .pptx) file for Swift
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")
]import OOXMLlet filePath = "/Users/lixu/demos/\(UUID().uuidString).xlsx"
let xlsxFile = try XLSXFile(filepath: filePath)let filePath = "/Users/lixu/demos/\(UUID().uuidString).docx"
let docxFile = try DOCXFile(filepath: filePath)let filePath = "/Users/lixu/demos/\(UUID().uuidString).pptx"
let pptxFile = try PPTXFile(filepath: filePath)To run the tests, use the following command:
swift testThis project is licensed under the MIT License - see the LICENSE file for details.