[Bioperl-l] problem in PDF::Create module

Shachi Gahoi shachigahoimbi at gmail.com
Wed Jun 8 08:48:02 UTC 2011


Dear All,

I am using PDF::Create module of bioperl to insert image in pdf file,

Here is the script on which I am working

######################################################################

#!/usr/bin/perl

use PDF;
use PDF::Create;

my $pdf = new PDF::Create('filename' => 'image.pdf');

my $a4 = $pdf->new_page('MediaBox' => $pdf->get_page_size('A4'));

my $page = $a4->new_page;

$page->image('domain.jpeg');

$pdf->close;

#############################################################################

In this script I am trying to insert domain.jpeg image in new pdf file
image.pdf. But when I am running the script, It is giving one error---

Error-
#############################################################################
*Can't use string ("1.2") as a HASH ref while "strict refs" in use at
/usr/local/share/perl/5.10.1/PDF/Create/Page.pm line 474.
*
#############################################################################

I am new to this module (PDF::Create). Is there any error in my script.
Please help me.

Thanks in advance

*
*
-- 
Regards,
Shachi



More information about the Bioperl-l mailing list