Subject: | text appearing reversed |
Date: | Tue, 19 May 2020 13:14:47 +0200 |
To: | bug-PDF-API2 [...] rt.cpan.org |
From: | Fabrizio del Tin <aquilarubra [...] gmail.com> |
When opening an existing PDF in order to add text to it. the text will
appear reversed.
my $pdf = PDF::Builder->open($myfile);
my $font = $pdf->corefont('Helvetica');
my $page = $pdf->openpage('1');
my $text = $page->text();
$page->mediabox('Letter');
$text->font($font, 40); # Set font to Helvetiva, 9pt (add by 4 to
increase)
$text->translate(200, 700); # Text start location for Corp chk box
$text->text('Hello World!'); # Print "X" at 173,660
$text->textlabel(400, 500, $font, 56, "i'm in ur pdf", -rotate => 180);
$pdf->saveas($outfile.pdf');
$pdf->end;
Screenshot attached.
[image: Screenshot from 2020-05-19 13-14-00.png]