This commit is contained in:
20
docs/snippets/csharp/config/postprocessor_config.md
Normal file
20
docs/snippets/csharp/config/postprocessor_config.md
Normal file
@@ -0,0 +1,20 @@
|
||||
```csharp title="C#"
|
||||
using Kreuzberg;
|
||||
|
||||
var config = new ExtractionConfig
|
||||
{
|
||||
Postprocessor = new PostProcessorConfig
|
||||
{
|
||||
Enabled = true,
|
||||
EnabledProcessors = new List<string>
|
||||
{
|
||||
"whitespace_normalizer",
|
||||
"unicode_normalizer"
|
||||
},
|
||||
DisabledProcessors = null
|
||||
}
|
||||
};
|
||||
|
||||
var result = await KreuzbergLib.ExtractFile("document.pdf", null, config);
|
||||
Console.WriteLine($"Processed content: {result.Content.Substring(0, Math.Min(100, result.Content.Length))}");
|
||||
```
|
||||
Reference in New Issue
Block a user