This commit is contained in:
18
docs/snippets/swift/ocr/image_extraction.md
Normal file
18
docs/snippets/swift/ocr/image_extraction.md
Normal file
@@ -0,0 +1,18 @@
|
||||
```swift title="Swift"
|
||||
import Foundation
|
||||
import Kreuzberg
|
||||
import RustBridge
|
||||
|
||||
let configJson = """
|
||||
{
|
||||
"images": {
|
||||
"extract_images": true
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
let config = try extractionConfigFromJson(configJson)
|
||||
let result = try extractFileSync("document.pdf", nil, config)
|
||||
|
||||
print(result.content().toString())
|
||||
```
|
||||
Reference in New Issue
Block a user