Click here to get back home

PDF::API2

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
PDF::API2 Kevin Luff 01-10-2006
`--> Re: PDF::API2 nobull@mail.com01-12-2006
Posted by Kevin Luff on January 10, 2006, 7:13 pm
Please log in for more thread options


Hi,
I've just started working with the PDF::API2 module.

I can make a PDF with text, draw boxes and circles - but I cannot figure
how to use the image methods to insert a jpeg for example.....

Anybody know how???

Kevin


Posted by nobull@mail.com on January 12, 2006, 10:19 am
Please log in for more thread options



Kevin Luff wrote:
> Hi,
> I've just started working with the PDF::API2 module.
>
> I can make a PDF with text, draw boxes and circles - but I cannot figure
> how to use the image methods to insert a jpeg for example.....
>
> Anybody know how???

Just grabbing a few lines from one of my programs...

my $page = $pdf->page;
#.....

                my $img=$pdf->image_jpeg($jpeg_file);
my $gfx=$page->gfx;
                $gfx->image($img,$x,$y,$w,$h);



Similar ThreadsPosted
PDF::API2 and Barcode October 14, 2004, 9:38 am
Perl module PDF::API2 July 11, 2004, 5:35 am
PDF::API2 stream problems November 3, 2004, 6:53 am
PDF::API2 - Extracting text and position from PDF file April 17, 2008, 9:20 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap