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

Reply via email to