Files
fil/docs/snippets/swift/config/html_output.md
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

20 lines
371 B
Markdown

```swift title="Swift"
import Foundation
import Kreuzberg
import RustBridge
let configJson = """
{
"output_format": "html",
"html_output": {
"theme": "github"
}
}
"""
let config = try extractionConfigFromJson(configJson)
let result = try extractFileSync("document.pdf", nil, config)
print(result.content().toString()) // HTML with kb-* classes
```