[Bioperl-l] problem in inserting image in pdf file

Chris Fields cjfields at illinois.edu
Tue Jun 14 13:56:58 UTC 2011


On Jun 14, 2011, at 4:37 AM, Shachi Gahoi 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.

I know we own a substantial bit of real estate on CPAN, but PDF::Create is NOT a BioPerl module.  You should contact the developer (from the PDF::Create README, bcc'd):

    Markus Baertschi, <redacted from the spambots>

    I have taken over maintenence of PDF::Create as Fabien has disappeared
    and did no longer maintain it in the last years.
    The last version of PDF::Create from Fabien is 0.06. All never versions
    have been modified by me.

    I maintain PDF::Create in git. You can access the repository directly
    at http://github.com/markusb/pdf-create.

chris

> 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
> <img.jpeg><IMAGE11.pdf>_______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l





More information about the Bioperl-l mailing list