Micro Focus QTP (UFT) Forums
Issue to use GetVisibleText to retrieve number from a PDF page in QTP11 - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Issue to use GetVisibleText to retrieve number from a PDF page in QTP11 (/Thread-Issue-to-use-GetVisibleText-to-retrieve-number-from-a-PDF-page-in-QTP11)



Issue to use GetVisibleText to retrieve number from a PDF page in QTP11 - jsun01 - 03-04-2013

Hi All,

I'm facing a problem in QTP11 using GetVisibleText to extract number 0, 6 and 9 from a PDF page:

1. In some situations, these three numbers can be retrieved successfully without any issue, but
2. In most of the situations, these three numbers are extracted with errors as follows:
1). 0 is identified as o or S
2). 6 or 9 is identified as 9 or 6 or 0 or something else

No issue to retrieve other numbers.

Has anyone else encountered this issue? Any other alternative?

Thanks


RE: Issue to use GetVisibleText to retrieve number from a PDF page in QTP11 - jsun01 - 03-09-2013

Eventually, the problem is resolved. Here is the solution:
1) Save a copy of the pdf file
2) Convert pdf file to text file
3) Retrieve the data from the texts

Jenny