sivaramanm has asked for the wisdom of the Perl Monks concerning the following question:
hello monks
I want to convert pdf files to jpeg files
I tried as follows
use PDF::API2; # $pdf = PDF::API2->new; $pdf = PDF::API2->open('c:\temp.pdf'); $page = $pdf->page; $page = $pdf->openpage($pagenum); $file = 'c:\/siva.jpeg'; $img = $pdf->image_jpeg('siva.jpeg');
But I got an error as can't call method a"val" on an undefined value at C:\perl\site\lib\PDF\API2\Resource\XObject\Image.pm line 99
pls help me
Thanks
Siva
2006-08-07 Retitled by planetscape, as per Monastery guidelines: one-word (or module-only) titles hinder site navigation
Original title: 'pdf2jpeg'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 'can't call method a"val" on an undefined value' error with PDF::API2
by andyford (Curate) on Aug 07, 2006 at 16:28 UTC | |
|
Re: 'can't call method a"val" on an undefined value' error with PDF::API2
by lorn (Monk) on Aug 07, 2006 at 19:11 UTC | |
|
Re: 'can't call method a"val" on an undefined value' error with PDF::API2
by McDarren (Abbot) on Aug 08, 2006 at 02:41 UTC |