Order of multiple ExportFormat requests

  • 308 Views
  • Last Post 29 July 2016
  • Topic Is Solved
dang posted this 29 July 2016

If I specify multiple formats - eg "txt,doc,pdf" the files seem to be returned in the same order requested ($ID is the txt file, $ID_1 is the doc, $ID_2 is the PDF).

Have I just been lucky, or is that guaranteed behaviour I can rely on?

Oksana Serdyuk posted this 29 July 2016

Yes, you can rely on this.

When the document is processed by Cloud OCR SDK, you will get the response from the service which contains the URLs of the results. The results will be represented in the export formats, which you have specified in the exportFormat parameter of the processing method. Namely, when you process a document with multiple export formats (for example, "rtf,pdfSearchable,xml") the response from the service will contain three URLs of the results for each of the export formats correspondingly:

  • resultUrl - for the first export format (RTF),
  • resultUrl2 - for the second specified format (PDF),
  • resiltUrl3 - for the third specified format (XML).

  • Liked by
  • Vitalie
Close