Page 1 of 1

How to get know text is right aligned or left aligned in PDF

Posted: Fri Jan 25, 2019 1:23 pm
by praneet
HI,

I need to compare the text alignment whether same or not in 2 PDFs. How can we do in Ranorex 8.3.2
Please help me.

Re: How to get know text is right aligned or left aligned in PDF

Posted: Fri Jan 25, 2019 1:28 pm
by odklizec
Hi,

Could you please post an example PDFs so we can examine them? There is definitely not an out-of-the-box feature in Ranorex to achieve what you want. But there maybe an attribute in PDF files, which may help with such validation? Unfortunately, it's impossible to suggest something reliable without seeing the PDFs.

Re: How to get know text is right aligned or left aligned in PDF

Posted: Fri Jan 25, 2019 1:38 pm
by praneet
CapturePDF.JPG
As you can see the crossed text is in blue. That is the text for which i need to get the alignment.
I have another PDF which contains the same text and alignment as above i need to verify whether both are having same alignment or not.

Re: How to get know text is right aligned or left aligned in PDF

Posted: Fri Jan 25, 2019 1:44 pm
by odklizec
Hi,

I'm sorry, but screenshot of a PDF file is not useful at all. I understand what you want, but without examining the PDF file, there is nothing I (and most probably anyone here) can do or suggest. You see, I don't have a PDF with right aligned text and I'm not willing to search or create such file, which may not be compatible with your PDF. So any suggestion I would make, based on my file, may be irrelevant ;)

Re: How to get know text is right aligned or left aligned in PDF

Posted: Fri Jan 25, 2019 2:14 pm
by praneet
PDF.zip
Please find the attachements. The number alignment in pdf1 should be placed at the same position in PDF 2 comment position.
Pls me let me know if u need more details.

Re: How to get know text is right aligned or left aligned in PDF

Posted: Sun Jan 27, 2019 10:13 am
by DeepikaK
Waiting for reply :roll:

Re: How to get know text is right aligned or left aligned in PDF

Posted: Mon Jan 28, 2019 9:29 am
by odklizec
Hi,

I'm afraid, I'm unable to track the text in top-right corner of the first PDF file and there seems to be no text in second PDF. Are you able to track the text with Ranorex Spy?

I see both PDF files were created with an old Office (2007) and I'm not quite sure if Office even produces PDF files with correct accessibility support? Without proper accessibility support, Ranorex has no access to PDF file content and there is nothing you can do with such PDF files in Ranorex.