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