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.