
vquickl27
Novice
Nov 12, 2011, 7:59 PM
Post #1 of 1
(561 views)
|
I am trying to modify a existing pdf document and having problems. I can modify the pdf but the text is not displaying left to right just top to bottom. I've included the pdf. my coordinates are off a little bit but i'm am not worried about that at this point. Any help would be appreciated. <code> #!/usr/bin/perl use strict; use warnings; use PDF::API2; my $infile = 'pn.pdf'; my $outfile = 'day_coords.pdf'; my $pdf = PDF::API2->open($infile); my $page = $pdf->openpage('1'); my $text = $page->text(); my $font = $pdf->corefont('Helvetica'); # prepare text object $text->font($font,16); $text->fillcolor("#000000"); $text->translate(16,70); $text->text("01"); $pdf->saveas($outfile); $pdf->end;
|