Page 1 of 1

How can we validate PDF Table cell value

Posted: Sat May 19, 2012 12:18 pm
by Adhisesha Reddy
Hi,

I am trying to validate the text value inside a cell in pdf. But while capturing the object, it is getting identified as rows and as single column. I am unable to identify the same as separate colums. PLS see attachement for refrence. I tried a code which is not working for now and pls the same below. Can u help in indentifying a particular cell in table in pdf. (Is it passible to validate a cell whether it is blank or not?)
PDF Table.JPG
Public Sub PDFTable()
Dim Rows, Cols as Integer
dim tab as Table = repo.FormReport.TableTable
MsgBox(tab.Columns.Count)
MsgBox(tab.Rows.Count)
For Rows=0 To tab.Rows.Count-1
For Cols=0 To tab.Columns.Count-1
Msgbox(tab.Columns(Cols).Cells(Rows).Text)
Next
Next

End Sub


Thanks,
Adi

Re: How can we validate PDF Table cell value

Posted: Sun May 20, 2012 9:19 am
by Support Team
Adhisesha Reddy wrote:Can u help in indentifying a particular cell in table in pdf. (Is it passible to validate a cell whether it is blank or not?)
That's impossible to tell without a Ranorex snapshot. As explained in the posting guidelines, please post a Ranorex snapshot of the PDF reader application when the PDF table is shown!
BTW what PDF reader are you using?

Regards,
Alex
Ranorex Team

Re: How can we validate PDF Table cell value

Posted: Mon May 21, 2012 9:53 am
by Adhisesha Reddy
Hi Alex,

Shared the Screenshot of the table of PDF.

Regards
Adi

Re: How can we validate PDF Table cell value

Posted: Mon May 21, 2012 9:55 am
by Adhisesha Reddy
Adobe version is 8.2.5

Re: How can we validate PDF Table cell value

Posted: Mon May 21, 2012 5:04 pm
by Support Team
Hi,

You can try to disable the MSAA filtering in Ranorex, just open the general settings of Ranorex and click on the "Plugins" tab, there you will find the option "Filter elements". Please try to set this to false, but consider that this is not recommended for "normal" purposes.
If this don't help you can also try to update Adobe as it is quite an old version.
For further investigations it would be great if you could upload your pdf?

Regards,
Markus
Ranorex Support Team