Files
fil/docs/snippets/csharp/config/config_ocr.md

20 lines
409 B
Markdown
Raw Normal View History

2026-06-01 23:40:55 +02:00
```csharp title="C#"
using Kreuzberg;
var config = new ExtractionConfig
{
Ocr = new OcrConfig
{
Backend = "tesseract",
Language = "eng"
}
};
var result = await KreuzbergLib.ExtractFile("scanned.pdf", null, config);
Console.WriteLine($"Content length: {result.Content.Length}");
if (result.Tables != null)
{
Console.WriteLine($"Tables detected: {result.Tables.Count}");
}
```