in reply to Re: Better way to add text to PDFs?
in thread Better way to add text to PDFs?
my $pdf = PDF::API2->open($file); my $pdpage = $pdf->openpage(1); my $text = $pdpage->text; $text->font( $pdf->corefont('Times', -encoding => 'latin1'), 12 ); $text->fillcolor('red'); $text->text("Wahoo!"); $pdf->saveas("/tmp/foo123.pdf"); $pdf->end;
Again, the result is dissapointing. The output PDF appears totally unchanged from the original. :(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Better way to add text to PDFs?
by BigLug (Chaplain) on Jul 14, 2005 at 23:16 UTC | |
by friedo (Prior) on Jul 15, 2005 at 18:12 UTC |