OcrEngine interface using Docling.
| Modifier and Type | Field and Description |
|---|---|
| private static final PDFont | |
| private static final float | |
| private static final JsonMapper | |
| public static final Logger | |
| private final OcrPreferences |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private OcrResult | |
| private String | |
| public String | |
| public OcrResult | performOcrAndEmbedText(Path pdfPath)
Implements org. Performs OCR on the given input file and returns the result, whether the path of the OCRed with searchable text file or the error message. |
| FONT | back to summary |
|---|---|
| private static final PDFont FONT | |
| FONTSIZE | back to summary |
|---|---|
| private static final float FONTSIZE | |
| JSON_MAPPER | back to summary |
|---|---|
| private static final JsonMapper JSON_MAPPER | |
| LOGGER | back to summary |
|---|---|
| public static final Logger LOGGER | |
| ocrPreferences | back to summary |
|---|---|
| private final OcrPreferences ocrPreferences | |
| DoclingEngine | back to summary |
|---|---|
| public DoclingEngine(OcrPreferences ocrPreferences) | |
| embedText | back to summary |
|---|---|
| private OcrResult embedText(Path jsonOutputPath, Path originalPdf) throws IOException | |
| filterEncodableCharacters | back to summary |
|---|---|
| private String filterEncodableCharacters(String text) | |
| 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) throws IOException Implements org. Doc from org. Performs OCR on the given input file and returns the result, whether the path of the OCRed with searchable text file or the error message.
| |