This commit is contained in:
15
docs/snippets/dart/plugins/pdf_metadata_extractor.md
Normal file
15
docs/snippets/dart/plugins/pdf_metadata_extractor.md
Normal file
@@ -0,0 +1,15 @@
|
||||
<!-- 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.
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user