I am writing a perl CGI script to create a PDF. Everything was working fine. I added some code related to fonts and now I'm getting the following error:
Can't locate object method "image_jpg" via package "PDF::API2" at /var/www/cgi-bin/upl.cgi line 308., referer: http://tweak/font_test/
I'm not really looking for an answer, but more of a hint. I want to understand this.
use CGI; # load the CGI.pm module
use DBI; # load database module
use DBD::mysql; # load mysql driver
use PDF::API2;
my $jpeg = $pdf->image_jpeg('/var/www/html/font_test/Pumpkins/backgrou
+nd.jpg');
my $png = $pdf->image_png('/var/www/html/font_
+test/Pumpkins/foreground.png');
my $tag = $pdf->image_jpg('/var/www/html/font_
+test/Pumpkins/tagline.jpg');