ps04 has asked for the wisdom of the Perl Monks concerning the following question:
I need to get the existing margins(left, right, top, bottom) on a page of pdf file in perl, here is the code to get the dimension of padf page.
use CAM::PDF; my $pdf = CAM::PDF->new('test2.pdf'); my $num_page=$pdf->numPages(); print "Total Pages : $num_page\n"; my ($x,$y,$width,$height)=$pdf->getPageDimensions(2); print "Dimension of PDF File : $width x $height px \n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get the existing margin on a pdf page
by Anonymous Monk on Aug 21, 2013 at 09:56 UTC | |
by ps04 (Initiate) on Aug 22, 2013 at 05:15 UTC | |
by Anonymous Monk on Aug 24, 2013 at 08:36 UTC |