I have PDF files that I read in Text and OCR. Then I count the words of both in different variables. This goes fine. Then I want to compare the two counts in an IF. If the text is larger dan the OCR than write the file to text.txt else write file to OCR.txt.
This is what doesn’t work: condition in the IF sExtractedOCR.Split(" “c).Count<sExtractedText.Split(” "c).Count.
All the texts are written to text.txt file while I have one file that should write to OCR.txt.
I hope someone can help me with this?
Kind regards