Skip to main content

pdf_ocr/
lib.rs

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