OcrEngine interface using OCRmyPDF.
| Modifier and Type | Field and Description |
|---|---|
| public static final Logger | |
| private final OcrPreferences |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public OcrResult | Returns: OcrResult. containing the path to the searchable PDF,
or OcrResult. with an error message if OCR failed.the file to perform OCR on. pdfPath)Implements org. OCRmyPDF writes the searchable PDF to a new file alongside the original file. |
| LOGGER | back to summary |
|---|---|
| public static final Logger LOGGER | |
| ocrPreferences | back to summary |
|---|---|
| private final OcrPreferences ocrPreferences | |
| OcrMyPdfEngine | back to summary |
|---|---|
| public OcrMyPdfEngine(OcrPreferences ocrPreferences) | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Gets the name of the OCR engine.
| |
| performOcrAndEmbedText | back to summary |
|---|---|
| public OcrResult performOcrAndEmbedText(Path pdfPath) Implements org. OCRmyPDF writes the searchable PDF to a new file alongside the original file. Example: document.pdf -> document_ocr.pdf.
| |