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

I am using PDF::API2
to generate PDF's out of my images. In the docs it mentions the cropbox function
    $pdf = PDF::API2->new;

However when I try to use it I get
Can't locate object method "cropbox" via package "PDF::API2::Lite"
any ideas?
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 ?
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.