This commit is contained in:
17
docs/snippets/csharp/config/html_output.md
Normal file
17
docs/snippets/csharp/config/html_output.md
Normal file
@@ -0,0 +1,17 @@
|
||||
```csharp title="C#"
|
||||
using Kreuzberg;
|
||||
|
||||
var config = new ExtractionConfig
|
||||
{
|
||||
OutputFormat = OutputFormat.Html,
|
||||
HtmlOutput = new HtmlOutputConfig
|
||||
{
|
||||
Theme = HtmlTheme.GitHub,
|
||||
EmbedCss = true,
|
||||
ClassPrefix = "kb-"
|
||||
}
|
||||
};
|
||||
|
||||
var result = await KreuzbergLib.ExtractFile("document.pdf", null, config);
|
||||
Console.WriteLine(result.Content);
|
||||
```
|
||||
Reference in New Issue
Block a user