Created
May 13, 2012 03:12
-
-
Save rightgo09/2673754 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use PDF::API2; | |
for my $file (@ARGV) { | |
print "$file page rotation.¥n"; | |
my $pdf = PDF::API2->open($file); | |
for my $page_number (1..$pdf->pages) { | |
$pdf->openpage($page_number) | |
->rotate($page_number % 2 ? 270 : 90); | |
} | |
$pdf->update; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment