Question / Problem:
Is it Possible to Add Words Into the OCR Representation of an xDoc?
Answer / Solution:
To add a word into the XDoc, it is required to add the word for a specific page in a "Representation" in the XDoc. The text should contain no blanks because the OCR results are separated by blanks.
Dim NewWord As New CscXDocWord ' Set all properties for the word. NewWord.Left = 100 NewWord.Top = 100 NewWord.Width = 300 NewWord.Height = 50 NewWord.Text = "TextOfTheWord" ' Add word to representation. usually representation is 0, but could also be a different one. ' Now we add the word to the third page (index=2). Item.Document.Representations(0).Pages(2).AddWord(NewWord)