Processing result formats

Aspose.OCR Cloud can return results in the most popular document and data exchange formats. The desired format is specified in request settings:

Format REST API setting Applies to
Plain text "resultType": "Text"
"resultTypeTable": "Text"
"resultType": "TextAndPdf"
"resultType": "TextAndHocr"
"resultType": "TextAndPdfAndHocr"
Image recognition
PDF recognition
Receipt recognition
Table recognition
Regions recognition
PDF "resultType": "Pdf"
"resultType": "TextAndPdf"
"resultType": "PdfAndHocr"
"resultType": "TextAndPdfAndHocr"
Image recognition
PDF recognition
Receipt recognition
Regions recognition
hOCR "resultType": "Hocr"
"resultType": "TextAndHocr"
"resultType": "PdfAndHocr"
"resultType": "TextAndPdfAndHocr"
Image recognition
PDF recognition
Receipt recognition
Regions recognition
Excel "resultType": "Excel"
"resultTypeTable": "CsvAndExcel"
Table recognition
CSV "resultType": "Csv"
"resultTypeTable": "CsvAndExcel"
Table recognition
WAV "resultType": "Wav" Text to speech conversion
PNG "resultType": "ImagePNG" Image preprocessing

Important considerations

  • You can get more than one result type from a single request. Use combined formats, such as TextAndPdf, TextAndHocr, PdfAndHocr, or TextAndPdfAndHocr.
  • When the recognition result is returned as PDF, the resulting PDF document will contain the preprocessed image in the background and an invisible text layer on top of it. This text layer can be searched, indexed, selected, and copied.
  • Almost all results (including plain text) are returned as Base64 encoded strings. You must decode them to display on the screen or save to a file.