This commit is contained in:
12
docs/snippets/swift/getting-started/extract_file.md
Normal file
12
docs/snippets/swift/getting-started/extract_file.md
Normal file
@@ -0,0 +1,12 @@
|
||||
```swift title="Swift"
|
||||
import Foundation
|
||||
import Kreuzberg
|
||||
import RustBridge
|
||||
|
||||
let config = try extractionConfigFromJson("{}")
|
||||
let result = try extractFileSync("document.pdf", nil, config)
|
||||
|
||||
print("Content: \(result.content().toString())")
|
||||
print("MIME type: \(result.mime_type().toString())")
|
||||
print("Tables: \(result.tables().count)")
|
||||
```
|
||||
Reference in New Issue
Block a user