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

Posted on 2009-04-16
Last Modified: 2012-05-06
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?
Question by:NewtonianB
    1 Comment
    LVL 19

    Accepted Solution

    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 ?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
    There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now