jstrat has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for your help!#!c:/perl/bin/perl -w use strict; use PDF::API2; my $pdf=PDF::API2->new; # Create a new top-level PDF document my $font = $pdf->corefont('Helvetica'); my ($page, $text); $page=$pdf->page(); # Create 1st page $page->mediabox(500, 700); # Set the page dimensions $text=$page->text(); $text->translate(50, 650); # Position the text $text->font($font,12); $text->text("Page 1"); $page=$pdf->page(); # Create 2nd page $page->mediabox(500, 700); # Set the page dimensions $text->translate(50, 640); # Position the text $text->text("Page 2"); $pdf->saveas("file.pdf"); $pdf->end; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PDF-API2 Basic Question
by edoc (Chaplain) on May 10, 2005 at 02:37 UTC | |
by jstrat (Initiate) on May 14, 2005 at 02:33 UTC | |
by Anonymous Monk on Jun 06, 2010 at 14:48 UTC | |
|
Re: PDF-API2 Basic Question
by scmason (Monk) on May 09, 2005 at 23:02 UTC |