Files
fil/docs/snippets/dart/plugins/pdf_only_processor.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

1010 B

import 'package:kreuzberg/kreuzberg.dart';

Future<void> main() async {
  // A Dart implementation of the `PostProcessor` trait that gates on PDF
  // MIME type cannot be plugged into the global registry.
  // `Kreuzberg.registerPostProcessor(impl)` exists, but its
  // `createPostProcessorDartImpl` factory takes opaque `BoxFn*` closure
  // values plus a `BoxFnDartFnFutureProcessingStage` whose constructors are
  // not surfaced through flutter_rust_bridge. The `ProcessingStage` enum is
  // not exported to Dart either.
  //
  // Implement the post-processor in Rust as `Plugin + PostProcessor` and
  // register it via `register_post_processor` in a Rust shim crate.
}