Hi!
How could I determine whether a pdf document is in the landscape or in normal format?
Thanks for any reply!
Landscape Format
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: Landscape Format
Hi relapse,
Each page in a PDF document can have it's orientation independent of any other pages (and size too in that matter), so you will need to determine that page by page.
You will need to get the pages width and height, and then check the rotation to determine whether it's displayed as a portrait or landscape page on screen.
Check section
2.2.2.4.1.2 Pages <item> in the Viewer manual, and see the "Contained Objects" table.
Best,
Stefan
Each page in a PDF document can have it's orientation independent of any other pages (and size too in that matter), so you will need to determine that page by page.
You will need to get the pages width and height, and then check the rotation to determine whether it's displayed as a portrait or landscape page on screen.
Check section
2.2.2.4.1.2 Pages <item> in the Viewer manual, and see the "Contained Objects" table.
Best,
Stefan