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);

Replies are listed 'Best First'.
Re^2: Determining a PDF's orientation
by friedo (Prior) on Aug 21, 2005 at 01:07 UTC
    Unfortunately, whenever I attempt to use PDF, I get the error "Bad object reference '>'", (an error which I have never seen before, anywhere.) As with everything else involving PDFs, there aren't any useful docs for solving this problem. It seems to me the entire purpose of this hell-spawned document format is for pissing off programmers. Oh well. I appreciate the help, though.