PDF:API2 can't locate object method "cropbox"

I am using PDF::API2
http://search.cpan.org/dist/PDF-API2/lib/PDF/API2.pm
to generate PDF's out of my images. In the docs it mentions the cropbox function
    $pdf = PDF::API2->new;
    $pdf->cropbox('A4');
    ...

However when I try to use it I get
Can't locate object method "cropbox" via package "PDF::API2::Lite"
any ideas?
NewtonianBAsked:
Who is Participating?
 
Kim RyanIT ConsultantCommented:
Does your code start with this?
use PDF::API2;

It seems to be looking for use PDF::API2::Lite package which does not have the crop function. Do yo know if you installed PDF::API2  or PDF::API2::Lite ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.