Files
fil/docs/snippets/swift/plugins/pdf_metadata_extractor.md
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

751 B

import Kreuzberg

// Custom DocumentExtractor registration is not available from Swift.
//
// The FFI defines SwiftDocumentExtractorBox opaque type (packages/swift/rust/src/lib.rs),
// but swift-bridge's Swift code generator does not emit the protocol definition or
// factory required to construct and register instances from Swift.
//
// Workaround: Augment PDF extraction results by implementing a PostProcessor in Rust,
// or post-process ExtractionResult.metadata in Swift after extraction.