11 lines
281 B
C#
11 lines
281 B
C#
|
|
using Kreuzberg;
|
||
|
|
|
||
|
|
var config = new ExtractionConfig
|
||
|
|
{
|
||
|
|
UseCache = true,
|
||
|
|
EnableQualityProcessing = true
|
||
|
|
};
|
||
|
|
|
||
|
|
var cts = new System.Threading.CancellationTokenSource(TimeSpan.FromSeconds(30));
|
||
|
|
var result = await KreuzbergLib.ExtractFileAsync("document.pdf", config, cts.Token);
|