I know this is an unsophisticated solution, but you can take advantage of the fact that usually in portrait documents the "x" dimension is smaller than "y" ; in landscape documents the reverse is true.
So by comparing "x" with "y" you can get a rough estimate of whether the document is in portrait or landscape mode.
Hope I understand your problem correctly.
In reply to Re: Determining a PDF's orientation
by calin
in thread Determining a PDF's orientation
by friedo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |