|
I took a quick look at the textlabel() method in the documentation and I see no where that setting the background color of the text label is allowed.
What I'm trying to do is overlay a date on top of an existing one in the PDF. Since the date format can vary, locating the element and removing it seems like not the best approach.
Is this possible at all? Am I using the wrong approach?
Here's some of the code that I'm using:
my $pdf = PDF::API2->open( $file );
my $page = $pdf->openpage( 1 );
my $font = $pdf->corefont( "Arial" );
my $dlab = $page->gfx;
# Set date.
$dlab->textlabel( 161, 84, $font, 7,
$date->month_name
. " "
. $date->day
. ", "
. $date->year,
-align => 'right' ); |