in reply to PDF::API2 page setup
The PDF::API2 doc has something to say about setting the mediabox. Does invoking this method improve the situation?
$pdf->mediabox($name) $pdf->mediabox($w, $h) $pdf->mediabox($llx, $lly, $urx, $ury)Sets the global mediabox.
Example:
$pdf = PDF::API2->new(); $pdf->mediabox('A4'); ... $pdf->saveas('our/new.pdf'); $pdf = PDF::API2->new(); $pdf->mediabox(595, 842); ... $pdf->saveas('our/new.pdf'); $pdf = PDF::API2->new; $pdf->mediabox(0, 0, 595, 842); ... $pdf->saveas('our/new.pdf');
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: PDF::API2 page setup
by ksublondie (Friar) on Aug 18, 2011 at 04:12 UTC | |
by snoopy (Curate) on Aug 18, 2011 at 05:05 UTC | |
by ksublondie (Friar) on Aug 18, 2011 at 16:27 UTC |
In Section
Seekers of Perl Wisdom