I'm using processFields in Cloud OCR API to extract text from a PDF document.
Output XML contains extra spaces like this:
while PDF text field is:
how can I prevent this?
asked 15 Jul '15, 10:47
Please try to use the following description for this text field in your XML file with recognition settings:
The oneTextLine element specifies whether the field contains only one text line. And the oneWordPerLine element specifies whether the field contains only one word in each text line.
Also in your case the letterSet and regExp elements of the text tag can be useful. Please see more details here.
Hope this will help!