Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Adding Image to PDF

by Eliya (Vicar)
on Oct 10, 2012 at 15:59 UTC ( #998249=note: print w/replies, xml ) Need Help??

in reply to Adding Image to PDF

... my $image = $pdf->image_jpeg( "images/logo.jpeg" ); $page->gfx->image( $image, 0, 0 ); ...

The key thing here is to call ->gfx on the page object (which kind of gets you the "graphics context" of that page).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998249]
[ambrus]: choroba: heh heh... I have such a doc bug report somewhere. fixed by now.
[Corion]: Once upon a time I had automatic tests for checking the synopsis, but I stopped doing that because the setup was too fragile on CPAN testers for extracting code from the SYNOPSIS.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-02-27 12:08 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (383 votes). Check out past polls.