Skip to main content

pdf_ocr/
lib.rs

1//! OCR integration for scanned PDFs with pluggable engine support.
2
3pub mod engine;
4pub mod error;
5pub mod pipeline;
6
7#[cfg(feature = "tesseract")]
8pub mod tesseract;
9
10#[cfg(feature = "paddle")]
11pub mod paddle;
12
13pub use engine::{NoOpEngine, OcrEngine, OcrPageResult, OcrWord};
14pub use error::{OcrError, Result};
15pub use pipeline::{make_searchable, OcrConfig, OcrPageReport, OcrReport};
16
17#[cfg(feature = "tesseract")]
18pub use tesseract::TesseractEngine;
19
20#[cfg(feature = "paddle")]
21pub use paddle::PaddleOcrEngine;