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";
In reply to Get the existing margin on a pdf page by ps04
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |