Table of Contents

Class PdfDocumentLoader

Namespace
Mythosia.Documents.Pdf
Assembly
Mythosia.Documents.Pdf.dll

Loads PDF documents via DoclingDocument โ†’ MarkdownSerializer.

public class PdfDocumentLoader : IDocumentLoader
Inheritance
PdfDocumentLoader
Implements
Inherited Members

Constructors

PdfDocumentLoader(IDocumentParser?, PdfParserOptions?)

public PdfDocumentLoader(IDocumentParser? parser = null, PdfParserOptions? options = null)

Parameters

parser IDocumentParser
options PdfParserOptions

Methods

LoadAsync(string, CancellationToken)

Loads one or more documents from the specified source. A single source may yield multiple documents (e.g., a ZIP archive or a directory).

public Task<IReadOnlyList<DoclingDocument>> LoadAsync(string source, CancellationToken ct = default)

Parameters

source string

File path, URL, or other source identifier.

ct CancellationToken

Returns

Task<IReadOnlyList<DoclingDocument>>

A list of loaded documents.