Check if a page in a pdf is in portrait or landscape mode

Ask general questions here.
manish
Posts: 39
Joined: Fri Aug 10, 2018 12:46 pm

Check if a page in a pdf is in portrait or landscape mode

Post by manish » Mon Apr 08, 2019 1:47 pm

Hi,

I have a scenario to test whether the page in a pdf is in portrait mode or landscape.
Does anyone has an idea how can this be acheived?

Thanks
Manish

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4924
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Check if a page in a pdf is in portrait or landscape mode

Post by odklizec » Mon Apr 08, 2019 1:52 pm

Hi,

Is there a chance you will post an example of PDF you want to validate? Generally speaking, there is no PDF specific method or action to validate something like this. But There may be a way to simply check the width/height of a PDF page and then simply decide the orientation based of obtained numbers? Eventually, you will have to find this information in PDF viewer of your choice?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration