Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Determining a PDF's orientation

by Roger (Parson)
on Aug 21, 2005 at 00:41 UTC ( #485456=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://485456]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2022-12-09 02:50 GMT
Find Nodes?
    Voting Booth?

    No recent polls found