Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Printing GIF/PNG to a HP printer

by termix (Beadle)
on May 30, 2002 at 18:23 UTC ( #170465=note: print w/replies, xml ) Need Help??

in reply to Printing GIF/PNG in the middle of a text report

As other users have pointed out this is not really a Perl issue. If you have a Perl script that creates the text and pictures, then you will need to:

  • Arrange the graphics within the text so that things print correctly. You could do this by outputing HTML from your Perl script (which has data + formatting). There are modules which would help you do that (you can even use just the printing functions from the CGI module).
  • Then you have to convert it to a printer friendly format. Use a system utility to convert from HTML to postscript. (you can try to see if netscape will print it out in the background for you through command line parameters).
  • Send it to the printer. If it is an HP printer, then it can deal with postscript. If it is connected through jet-Direct then you need to setup a remote printer (a breeze to do if you read man printcap or if you have some friendly linux distribution installed.

It should not prove a daunting task, but it lies somewhat outside the Perl domain (and I don't recommend writing a Perl driver for your HP).

-- termix

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2023-06-03 22:21 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (17 votes). Check out past polls.