develooper Front page | perl.beginners | Postings from October 2009

Problem with PDF::API2::Lite module

Thread Next
From:
ANJAN PURKAYASTHA
Date:
October 22, 2009 05:02
Subject:
Problem with PDF::API2::Lite module
Message ID:
f03f40920910220502t153cdff6l31a083518d567615@mail.gmail.com
Hi All,
I wrote a short script to test the PDF::API2::Lite module. I work on a Mac
OSX.
Here is the script:
#! /usr/bin/perl

use strict;
use warnings;
use PDF::API2::Lite;

my $pdf= PDF::API2::Lite->new;

my $img = $pdf->image_jpeg('/Users/anjan/Desktop/personal/me.jpeg');
$pdf->page($img->width, $img->height);
$pdf->image($img, 0, 0);
$pdf->saveas('/Users/anjan/Desktop/test.pdf');
#############################################################

I get an error: Can't call method "val" on an undefined value at
/Library/Perl/5.8.8/PDF/API2/Resource/XObject/Image.pm line 99.

Does anyone else on this forum use this module? If so any insight on how I
can correct it?
Many thanks in advance.
Anjan

-- 
=============================
anjan purkayastha, phd
bioinformatics analyst
whitehead institute for biomedical research
nine cambridge center
cambridge, ma 02142

purkayas [at] wi [dot] mit [dot] edu
703.740.6939

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About