Community

Missing Value tag in XML Output (PHP Example)

Hi,

I have just started to look at the PHP SDK for Abby and have come up against an issue when processing a document.

The XML outputs as expected, but int he page examples there is a "Value" field before the character output. On my output this is missing.

Here is an example of the output:

<line baseline="1632" l="322" t="1603" r="566" b="1632">
<formatting lang="EnglishUnitedStates">
<charParams l="322" t="1604" r="336" b="1631">7</charParams>
<charParams l="341" t="1604" r="356" b="1632">5</charParams>
<charParams l="360" t="1606" r="374" b="1630" suspicious="1">%</charParams>
<charParams l="375" t="1606" r="397" b="1630"></charParams>
<charParams l="398" t="1613" r="413" b="1630">r</charParams>
<charParams l="417" t="1613" r="432" b="1632">e</charParams>
<charParams l="436" t="1613" r="451" b="1631">c</charParams>
<charParams l="455" t="1613" r="470" b="1632">y</charParams>
<charParams l="474" t="1612" r="490" b="1631">c</charParams>
<charParams l="497" t="1603" r="506" b="1630" suspicious="1">l</charParams>
<charParams l="516" t="1606" r="525" b="1630" suspicious="1">i</charParams>
<charParams l="532" t="1612" r="547" b="1630">n</charParams>
<charParams l="551" t="1612" r="566" b="1632">g</charParams>
</formatting>
</line>

I am using this url value

$url = 'http://cloud.ocrsdk.com/processImage?language=english&exportFormat=xml&profile=textExtraction';

So according the the examples on the Abby site, there is a xml output which displays the full value above the output like this:

<line baseline="1632" l="322" t="1603" r="566" b="1632">
<value encoding=”UTF-16”>75%</value>
<formatting lang="EnglishUnitedStates">
<charParams l="322" t="1604" r="336" b="1631">7</charParams>
<charParams l="341" t="1604" r="356" b="1632">5</charParams>
<charParams l="360" t="1606" r="374" b="1630" suspicious="1">%</charParams>
</formatting>
</line>

Am i missing some value to be passed to get the "value" entry in the xml?

Thanks

Tony

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.