pub trait ExtractorFilter: Debug {
// Required method
fn filter_text(&self, text: &str, page_num: usize) -> Option<String>;
}Expand description
文本抽取过滤器 trait。
对应 Java: org.ofdrw.reader.extractor.ExtractorFilter(@FunctionalInterface)
实现此 trait 可以自定义文本抽取的过滤逻辑, 例如按区域过滤、按字体过滤等。
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".