This commit is contained in:
19
docs/snippets/csharp/config/config_ocr.md
Normal file
19
docs/snippets/csharp/config/config_ocr.md
Normal file
@@ -0,0 +1,19 @@
|
||||
```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}");
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user