Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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).


Comment on Re: Adding Image to PDF
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998249]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (16)
As of 2014-09-02 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (25 votes), past polls