Landscape Format

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Landscape Format

Post by relapse »

Hi!

How could I determine whether a pdf document is in the landscape or in normal format?


Thanks for any reply!
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Landscape Format

Post by Stefan - PDF-XChange »

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