Table of Contents

Method AddPdfExtractor

Namespace
Qavren.Edge.Ingestion.Pdf
Assembly
Qavren.Edge.Ingestion.Pdf.dll

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

builder EdgeBuilder

The Qavren.Edge builder.

configure Action<PdfExtractorOptions>

Configures the options; applied on every call, to one instance.

Returns

EdgeBuilder

The builder, for chaining.