Property Documents
- Namespace
- LMKit.Extraction
- Assembly
- LM-Kit.NET.dll
Documents
Gets the list of file paths to the split PDF files, one per detected DocumentSegment.
public IReadOnlyList<string> Documents { get; }
Property Value
- IReadOnlyList<string>
A read-only list of absolute file paths to the split PDF files, or
nullwhen the splitting operation was invoked without thesplitDocumentoption. Each path at indexicorresponds to Segments[i].
Examples
// Split with file output
var result = splitter.Split(new Attachment("batch.pdf"), splitDocument: true, outputDirectory: "output");
if (result.Documents != null)
{
for (int i = 0; i < result.Documents.Count; i++)
{
Console.WriteLine($"Segment '{result.Segments[i].Label}' => {result.Documents[i]}");
}
}
Remarks
This property is populated only when
Split(Attachment, bool, string, CancellationToken) or
SplitAsync(Attachment, bool, string, CancellationToken)
is called with splitDocument set to true.