public static interface OcrPdfRenderer.RenderIterator
OcrPdfRenderer.RenderIterator must be recycled after usage:recycle()| Modifier and Type | Method and Description |
|---|---|
java.util.List<OcrResultBlock> |
getDetectedLines() |
java.util.List<OcrResultBlock> |
getDetectedParagraphs() |
java.lang.String |
getDetectedText() |
java.util.List<OcrResultBlock> |
getDetectedWords() |
Page |
getLastProcessedPage() |
int |
getLastProcessedPosition() |
void |
recycle()
Frees resources held by
OcrPdfRenderer.RenderIterator |
boolean |
renderNextPage()
Performs OCR of next page if available.
|
boolean renderNextPage()
throws java.io.IOException
true if OCR was performed. false if no more pages available.java.io.IOExceptionjava.lang.String getDetectedText()
null if nothing was detected yet.java.util.List<OcrResultBlock> getDetectedParagraphs()
List of paragraphs OcrResultBlocks detected so far, or empty list if nothing was detected yet.java.util.List<OcrResultBlock> getDetectedLines()
List of text lines OcrResultBlocks detected so far, or empty list if nothing was detected yet.java.util.List<OcrResultBlock> getDetectedWords()
List of words OcrResultBlocks detected so far, or empty list if nothing was detected yet.Page getLastProcessedPage()
Page. If no pages were processed
returns nullint getLastProcessedPosition()
-1void recycle()
OcrPdfRenderer.RenderIterator