Files

20 lines
422 B
Markdown
Raw Permalink Normal View History

2026-06-01 23:40:55 +02:00
```elixir title="Elixir"
defmodule BasicUsage do
def extract_with_default_config do
# Use default configuration (nil)
config = nil
case Kreuzberg.extract_file_sync("document.pdf", nil, config) do
{:ok, content} ->
IO.puts("Extracted content:")
IO.puts(content)
:ok
{:error, reason} ->
IO.puts("Extraction failed: #{reason}")
:error
end
end
end
```