Subject: | Can't locate object method "image_jpeg" via package "PDF::API2" |
Date: | Wed, 19 Feb 2020 21:56:16 -0500 |
To: | <bug-PDF-API2 [...] rt.cpan.org> |
From: | "Tim Turner" <tturner [...] torrid-tech.com> |
Hi,
I have used PDF::API2 for at least 10 years or more.
My web provider is forcing me to use a new server.
Moving all my code over. and it's just not working.
PDF::API2 is indeed installed and I can generate a PDF
but problem is with adding a JPEG.
First issue is that it doesn't recognize image_jpeg at all. I did not
change the code and it barfs on image_jpeg.
I get this message:
Can't locate object method "image_jpeg" via package "PDF::API2" at
/var/www/vhosts /httpdocs/cgi-bin/somepathSNIPPED/custom_setup.pl line 220
Google that error and find nothing of value.
If I change the method to just image without the jpeg I get:
2020] dist.cgi: image
'/var/www/vhosts/webcalcs.com/httpdocs/docs/SNIP/images/logo_PLifeVert_4_C.j
pg' has unknown format with signature '000000000000' at
/usr/local/share/perl5/PDF/API2.pm line 5914., referer:
<https://www.webcalcs.com/cgi-bin/calcs/prod/distributions.cgi?client=pacifi
clife&case=gen_72T> url removed
Any help or advice appreciated. Other info below.
Regards,
-Tim
-----------------
Be sure to include at least the following information:
* Distribution name and version (For example,
"DBIx-SearchBuilder-0.46")
cpan -D PDF::API2
CPAN: Storable loaded ok (v2.20)
CPAN: LWP::UserAgent loaded ok (v5.833)
CPAN: Time::HiRes loaded ok (v1.9721)
mkdir /root: Permission denied at /usr/share/perl5/CPAN/FTP.pm line 501
* Perl version (Find this by running the command perl -v)
Perl v5.10.1
* Operating System vendor and version (Find this by running the
command uname -a)
Linux pluto.ourcontrolpanel.com 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP
Wed Jan 17 13:19:23 EST 2018 x86_64 x86_64 x86_64 GNU/Linux
Message body is not shown because it is too large.