Method AddPdfExtractor
AddPdfExtractor(EdgeBuilder, Action<PdfExtractorOptions>?)
Registers PdfTextExtractor (Id "pdf") and its
PdfExtractorOptions (spec 7.4). Idempotent: a second call re-applies
configure to the same options instance and registers no second extractor,
so it does NOT trip IngestionDuplicateExtractorId (6004) — that
code is for two DIFFERENT registrations sharing an Id. Order-independent relative to
AddIngestion, because the registry is composed at resolve time. A consumer who builds
new PdfTextExtractor(options) by hand and passes it to AddDocumentExtractor
lands in the same registry and bypasses nothing.
public static EdgeBuilder AddPdfExtractor(this EdgeBuilder builder, Action<PdfExtractorOptions>? configure = null)
Parameters
builderEdgeBuilderThe Qavren.Edge builder.
configureAction<PdfExtractorOptions>Configures the options; applied on every call, to one instance.
Returns
- EdgeBuilder
The builder, for chaining.