Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hughbe/emfspoolreader

Swift definitions for structures, enumerations and functions defined in [MS-EMFSPOOL]
https://github.com/hughbe/emfspoolreader

Last synced: 17 days ago
JSON representation

Swift definitions for structures, enumerations and functions defined in [MS-EMFSPOOL]

Awesome Lists containing this project

README

        

# EmfSpoolReader

Swift definitions for structures, enumerations and functions defined in [MS-EMFSPOOL](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-emfspool/)

## Example Usage

Add the following line to your project's SwiftPM dependencies:
```swift
.package(url: "https://github.com/hughbe/EmfSpoolReader", from: "1.0.0"),
```

```swift
import EmfSpoolReader

let data = Data(contentsOfFile: ".SPL")!
let file = try EmfSpoolFile(data: data)
try file.enumerateRecords { record in
print("Record: \(record)")
return .continue
}
```