Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Printing GIF/PNG to a HP printer

by termix (Beadle)
on May 30, 2002 at 18:23 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-18 02:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found