This commit is contained in:
13
docs/snippets/swift/plugins/pdf_metadata_extractor.md
Normal file
13
docs/snippets/swift/plugins/pdf_metadata_extractor.md
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- snippet:skip reason="swift-bridge 0.1.59 does not expose SwiftDocumentExtractorBox constructor or protocol definition in generated Swift code. Custom extractors must be implemented in Rust and registered via FFI shim." -->
|
||||
```swift title="Swift"
|
||||
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.
|
||||
```
|
||||
Reference in New Issue
Block a user