251 B
251 B
config_json = Jason.encode!(%{
"ocr" => %{
"backend" => "tesseract",
"language" => "eng"
}
})
{:ok, result} = Kreuzberg.extract_file_sync("scanned.pdf", "application/pdf", config_json)
IO.puts(result.content)