16 lines
350 B
Markdown
16 lines
350 B
Markdown
|
|
```elixir title="Elixir"
|
||
|
|
config_json = Jason.encode!(%{
|
||
|
|
"post_processors" => [
|
||
|
|
%{
|
||
|
|
"name" => "QualityFilter",
|
||
|
|
"enabled" => true
|
||
|
|
}
|
||
|
|
]
|
||
|
|
})
|
||
|
|
|
||
|
|
{:ok, result} = Kreuzberg.extract_file_sync("document.pdf", "application/pdf", config_json)
|
||
|
|
|
||
|
|
IO.puts("Extraction quality applied")
|
||
|
|
IO.inspect(result.text, label: "Quality-filtered text")
|
||
|
|
```
|