[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

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

Accepted Solution

by:
Kim Ryan earned 2000 total points
ID: 24165271
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…
Six Sigma Control Plans
Suggested Courses

865 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