http://qs321.pair.com?node_id=485456


in reply to Determining a PDF's orientation

Have you tried the PDF suite to determine the page orientation?
use PDF::Parse; use Data::Dumper; my $pdf->TargetFile($filename); $pdf->LoadPageInfo; my @size = $pdf->PageSize; my $rotation = $pdf->PageRotation; print Dumper(\@size); print Dumper($rotation);