Class PdfDocumentLoader
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
parserIDocumentParseroptionsPdfParserOptions
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
sourcestringFile path, URL, or other source identifier.
ctCancellationToken
Returns
- Task<IReadOnlyList<DoclingDocument>>
A list of loaded documents.