[Bioperl-l] problem in inserting image in pdf file
Rutger Vos
R.A.Vos at reading.ac.uk
Tue Jun 14 13:53:38 UTC 2011
Dear Shachi,
this question doesn't seem related to BioPerl, perhaps you might
instead ask the author(s) of PDF::Create, or read its documentation?
Best wishes,
Rutger
On Tue, Jun 14, 2011 at 10:37 AM, Shachi Gahoi <shachigahoimbi at gmail.com> wrote:
> Dear All,
>
> I want to insert my image file in newly created pdf file. For this I am
> using bioperl module PDF::Create to create new pdf file.
>
> But when I inserted my image file in newly created pdf file, whole image is
> not coming in pdf file. I have attached used image file and created pdf
> file.
>
> Please tell me the required changes in script.
>
> Code is given below ----
>
> ##############################
> ######################################
> #!/usr/bin/perl
> use strict;
> use warnings;
>
> use PDF::Create;
>
> my $pdf = new PDF::Create('filename' => 'IMAGE11.pdf');
>
> my $a4 = $pdf->new_page('MediaBox' => $pdf->get_page_size('A4'));
>
> my $page = $a4->new_page;
>
> my $image = $pdf->image('img.jpeg');
>
> $page->image(image => $image, xpos => -5, ypos => 650);
>
> $pdf->close;
> ##############################################################################
>
>
> --
> Regards,
> Shachi
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
>
--
Dr. Rutger A. Vos
School of Biological Sciences
Philip Lyle Building, Level 4
University of Reading
Reading, RG6 6BX, United Kingdom
Tel: +44 (0) 118 378 7535
http://rutgervos.blogspot.com
More information about the Bioperl-l
mailing list