Files
fil/docs/snippets/csharp/api/extract_bytes_async.md
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

339 B

using Kreuzberg;

var data = await File.ReadAllBytesAsync("document.pdf");
var config = new ExtractionConfig { OutputFormat = OutputFormat.Text };
var result = await KreuzbergLib.ExtractBytes(data, "application/pdf", config);

Console.WriteLine(result.Content);
Console.WriteLine($"MIME Type: {result.MimeType}");