Files
fil/docs/snippets/csharp/batch_extract_bytes_sync.md

14 lines
441 B
Markdown
Raw Permalink Normal View History

2026-06-01 23:40:55 +02:00
```csharp title="C#"
using Kreuzberg;
var documents = new[]
{
new BytesWithMime(await File.ReadAllBytesAsync("doc1.pdf"), "application/pdf"),
new BytesWithMime(await File.ReadAllBytesAsync("doc2.docx"), "application/vnd.openxmlformats-officedocument.wordprocessingml.document"),
};
var results = KreuzbergLib.BatchExtractBytesSync(documents, new ExtractionConfig());
Console.WriteLine($"Processed {results.Count} documents");
```