Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughbe/olepropertyset
Swift reader of OLE Property Sets defined in [MS-OLEPS]
https://github.com/hughbe/olepropertyset
Last synced: 2 days ago
JSON representation
Swift reader of OLE Property Sets defined in [MS-OLEPS]
- Host: GitHub
- URL: https://github.com/hughbe/olepropertyset
- Owner: hughbe
- Created: 2020-11-04T15:01:18.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-16T14:15:59.000Z (about 4 years ago)
- Last Synced: 2024-11-10T12:47:28.457Z (about 2 months ago)
- Language: Swift
- Size: 3.58 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OlePropertySet
Swift reader of OLE Property Sets defined in [MS-OLEPS](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-oleps/)
## Example Usage
Add the following line to your project's SwiftPM dependencies:
```swift
.package(url: "https://github.com/hughbe/OlePropertySet", from: "1.0.0"),
``````swift
import CompoundFileReader
import MsgReaderlet data = Data(contentsOfFile: ".doc")!
let file = try CompoundFile(data: data)
var rootStorage = file.rootStorage
var dataStream = rootStorage.children["\u{0005}SummaryInformation"]!.dataStream
let summaryInformation = try PropertySetStream(dataStream: &dataStream)
print(summaryInformation)
```