public class OcrOutput extends ArrayList<RecognitionResult>
modCount| Constructor and Description |
|---|
OcrOutput()
Initializes a new instance of the OcrOutput class with an empty collection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(Collection<? extends RecognitionResult> collection)
Overrides addAll to add the elements of the specified collection to the end of the OcrOutput list.
|
void |
save(OutputStream stream)
Save all recognition results to a memory stream in the specified format.
|
void |
save(OutputStream stream,
Format saveFormat)
Save all recognition results to a memory stream in the specified format.
|
void |
save(OutputStream stream,
Format saveFormat,
String embeddedFontPath,
PdfOptimizationMode optimizePdf)
Save all recognition results to a memory stream in the specified format.
|
void |
save(String fullFileName)
Save all recognition result to a file.
|
void |
save(String fullFileName,
Format saveFormat)
Save all recognition result to a file.
|
void |
save(String fullFileName,
Format saveFormat,
String embeddedFontPath,
PdfOptimizationMode optimizePdf)
Save all recognition result to a file.
|
void |
savePdf(OutputStream stream)
Save all recognition results into an in-memory searchable PDF document, embedding the original images as the background.
|
void |
savePdf(OutputStream stream,
String embeddedFontPath,
PdfOptimizationMode optimizePdf)
Save all recognition results into an in-memory searchable PDF document, embedding the original images as the background.
|
void |
savePdf(String fullFileName)
Save all recognition results into a searchable PDF file, with the original images set as the background.
|
void |
savePdf(String fullFileName,
String embeddedFontPath,
PdfOptimizationMode optimizePdf)
Save all recognition results into a searchable PDF file, with the original images set as the background.
|
add, add, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic OcrOutput()
public void savePdf(String fullFileName) throws IOException, AsposeOCRException
fullFileName - Filename with a path for saving recognition result in the selected format.IOException - if file not found.AsposeOCRException - if recognition error.public void savePdf(String fullFileName, String embeddedFontPath, PdfOptimizationMode optimizePdf) throws IOException, AsposeOCRException
fullFileName - Filename with a path for saving recognition result in the selected format.embeddedFontPath - Optional. Full path to the user font.optimizePdf - Reduce the PDF file size by lowering the quality of background images.
By default, the original image quality is preserved.IOException - if file not found.AsposeOCRException - if recognition error.public void save(String fullFileName)
fullFileName - Filename with a path for saving recognition result in the selected format.public void save(String fullFileName, Format saveFormat)
fullFileName - Filename with a path for saving recognition result in the selected format.saveFormat - Document format (Docx, Txt, Pdf, Xlsx, Rtf, Json, Xml, Epub).public void save(String fullFileName, Format saveFormat, String embeddedFontPath, PdfOptimizationMode optimizePdf)
fullFileName - Filename with a path for saving recognition result in the selected format.saveFormat - Document format (Docx, Txt, Pdf, Xlsx, Rtf, Json, Xml, Epub).embeddedFontPath - Optional. Full path to the user font.optimizePdf - Reduce the PDF file size by lowering the quality of background images.
By default, the original image quality is preserved.public void savePdf(OutputStream stream) throws IOException, AsposeOCRException
stream - OutputStream for saving recognition result in the selected format.IOException - if file not found.AsposeOCRException - if recognition error.public void savePdf(OutputStream stream, String embeddedFontPath, PdfOptimizationMode optimizePdf) throws IOException, AsposeOCRException
stream - OutputStream for saving recognition result in the selected format.embeddedFontPath - Optional. Full path to the user font.optimizePdf - Reduce the PDF file size by lowering the quality of background images.
By default, the original image quality is preserved.IOException - if file not found.AsposeOCRException - if recognition error.public void save(OutputStream stream)
stream - OutputStream for saving recognition result in the selected format.public void save(OutputStream stream, Format saveFormat)
stream - OutputStream for saving recognition result in the selected format.saveFormat - Document format (Docx, Txt, Pdf, Xlsx, Rtf, Json, Xml, Epub).public void save(OutputStream stream, Format saveFormat, String embeddedFontPath, PdfOptimizationMode optimizePdf)
stream - OutputStream for saving recognition result in the selected format.saveFormat - Document format (Docx, Txt, Pdf, Xlsx, Rtf, Json, Xml, Epub).embeddedFontPath - Optional. Full path to the user font.optimizePdf - Reduce the PDF file size by lowering the quality of background images.
By default, the original image quality is preserved.public boolean addAll(Collection<? extends RecognitionResult> collection)
addAll in interface Collection<RecognitionResult>addAll in interface List<RecognitionResult>addAll in class ArrayList<RecognitionResult>collection - The collection of RecognitionResult to add.Copyright © 2025 Aspose. All rights reserved.