| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final Logger | |
| public static final String | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if the engine is available, false otherwise.Checks if the OCR engine is available for use. |
| public static Path | Returns: the output path of the searchable OCRed PDF.the path of the PDF that needs to be OCRed. inputPath)Generates the output path for the searchable PDF. |
| public static OcrResult | performOcr(ArrayList<String> command, String engineName)
Helper method to abstract the common logic of running an OCR engine command and handling its output. |
| CHECKING_TIMEOUT | back to summary |
|---|---|
| public static final int CHECKING_TIMEOUT | |
| LOGGER | back to summary |
|---|---|
| public static final Logger LOGGER | |
| OCR_PDF_PREFIX | back to summary |
|---|---|
| public static final String OCR_PDF_PREFIX | |
| TIMEOUT_MINS | back to summary |
|---|---|
| public static final int TIMEOUT_MINS | |
| OcrUtils | back to summary |
|---|---|
| public OcrUtils() | |
| isAvailable | back to summary |
|---|---|
| public static boolean isAvailable(OcrPreferences ocrPreferences) Checks if the OCR engine is available for use.
| |
| makeOutputFilePath | back to summary |
|---|---|
| public static Path makeOutputFilePath(Path inputPath) Generates the output path for the searchable PDF. Example: Documents/my files/document.pdf -> Documents/my files/document_ocr.pdf. | |
| performOcr | back to summary |
|---|---|
| public static OcrResult performOcr(ArrayList<String> command, String engineName) Helper method to abstract the common logic of running an OCR engine command and handling its output. | |