This commit is contained in:
11
docs/snippets/kotlin/getting-started/hello_world.md
Normal file
11
docs/snippets/kotlin/getting-started/hello_world.md
Normal file
@@ -0,0 +1,11 @@
|
||||
```kotlin title="Kotlin"
|
||||
import dev.kreuzberg.*
|
||||
import java.nio.file.Paths
|
||||
|
||||
fun main() {
|
||||
println("Hello from Kreuzberg!")
|
||||
val config = ExtractionConfig.builder().build()
|
||||
val result = dev.kreuzberg.Kreuzberg.extractFileSync(Paths.get("document.pdf"), null, config)
|
||||
println(result.content())
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user