I want to get output in multiple export formats using the cloudservice with the example PHP script provided on the website.

The url:

$url = 'http://cloud.ocrsdk.com/processImage?language=dutch&exportFormat=xml,pdfSearchable,txt';

And the final lines (inspired by the sample script):

  $response = curl_exec($curlHandle);
  curl_close($curlHandle);

  // Let user donwload xml result
  header('Content-type: application/xml');
  header('Content-Disposition: attachment; filename="file.xml"');
  echo $response;

I only get the results from the first exportFormat parameter value, so in this case the xml. I don't get any attributes like resultUrl in said xml, as specified here. I'm rather new to this. Anyone that knows how to do this (in PHP)?

Thanks in advance.

asked 19 Mar '16, 15:20

Lennart%20Kloppenburg's gravatar image

Lennart Klop...
1


When the document is processed by our service, you will get the XML response from the service which contains the URL of the result. The result will be represented in the export format, which you have specified in the exportFormat parameter of the processing method. When you process a document with multiple export formats, the response from the service will contain up to three URLs of the results for each of the export formats correspondingly: the resultUrl attribute for the first export format, the resultUrl2 attribute for the second, and the resultUrl3 for the third.

link

answered 21 Mar '16, 13:10

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦
1.5k16

Thanks but this does not necessarily answer my question. I did figure it out, though.

(21 Mar '16, 15:31) Lennart Klop...
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×33
×1

Asked: 19 Mar '16, 15:20

Seen: 719 times

Last updated: 21 Mar '16, 15:31

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal