Files
fil/docs/snippets/dart/plugins/pdf_metadata_extractor.md

16 lines
685 B
Markdown
Raw Permalink Normal View History

2026-06-01 23:40:55 +02:00
<!-- snippet:skip reason="DocumentExtractor trait has no createDocumentExtractorDartImpl factory; custom extractors must be implemented in Rust." -->
```dart title="Dart"
import 'package:kreuzberg/kreuzberg.dart';
Future<void> main() async {
// Custom document extractors cannot be implemented in Dart. Creating a
// PDF metadata extractor would require implementing the DocumentExtractor
// trait, but flutter_rust_bridge does not generate the
// createDocumentExtractorDartImpl factory function.
//
// Implement the PDF metadata extractor in Rust and register it via a
// Rust shim crate that links kreuzberg before the Dart host loads the
// dynamic library.
}
```