Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Question: I've been handed a task to create various forms on the fly from our website in PDF. After looking at PDF::Create it looks like that will handle all of my needs with the exception of one. I need a simple small .jpeg logo on each page. Does anyone know how to do this? I did not see this functionality in PDF::Create. Thanks in advance.

Replies are listed 'Best First'.
Re: images in PDF
by Jouke (Curate) on Aug 07, 2001 at 10:45 UTC
    I'm using PDFLib for all my PDF creation. It lets you add images without any problems.

    Jouke Visser, Perl 'Adept'
    Programming Perl to Enable the Disabled: pVoice and pStory
Re: images in PDF
by mattr (Curate) on Aug 07, 2001 at 10:50 UTC
    I have not used them, but why not check out jpg2pdf or Text::PDF::API. It looks like the latter one does just what you want.

    If they work for you please post back your findings here.

Re: images in PDF
by shotgunefx (Parson) on Aug 07, 2001 at 12:27 UTC
    Look at the Yahoo! perl-text-pdf-modules egroup. I am working on a similar issue and found a good example script in this thread.

    -Lee

    "To be civilized is to deny one's nature."
Re: images in PDF
by Anonymous Monk on Aug 07, 2001 at 18:26 UTC
    Yep, the example in the thread listed above worked just fine. I used the Text::PDF::API with the following snippet:
    ($key,$width,$height)=$pdfapiobj->newImage($file); $pdfapiobj->placeImage($key,0,0,$width,$height);
    Thanks for your help.