This commit is contained in:
14
docs/snippets/elixir/getting-started/hello_world.md
Normal file
14
docs/snippets/elixir/getting-started/hello_world.md
Normal file
@@ -0,0 +1,14 @@
|
||||
```elixir title="Elixir"
|
||||
defmodule HelloWorld do
|
||||
def main do
|
||||
case Kreuzberg.extract_file_sync("document.pdf", nil, nil) do
|
||||
{:ok, result} ->
|
||||
IO.puts("Extraction succeeded!")
|
||||
IO.puts(result)
|
||||
|
||||
{:error, reason} ->
|
||||
IO.puts("Error: #{reason}")
|
||||
end
|
||||
end
|
||||
end
|
||||
```
|
||||
Reference in New Issue
Block a user