Re: Printing a GIF image directly

From: lanas <>
Date: Fri, 3 Jun 2005 07:21:29 -0400

On Thu, 02 Jun 2005 14:32:32 -0400
"Joel G. Martin" <> wrote:

> Hi Dimitry. I'm trying to write a simple script that will print
> a grayscale GIF image to a laser printer without resizing it and
> without opening a window on the screen first. I'm pretty sure Prima
> can do this but I'm having trouble figuring out how. Could you give
> me some pointers? THANK YOU in advance!

This is just an idea, but you could simply send the file to the print
spooler, no ? If the print spooler was installed with regular filters
and a proper PPD file for the target printer then the GIF file would be
simply printed 'as is' to the printer. A system call could send it,
something like:

my $erroCode = system ("lpr test.gif");


Received on Fri 03 Jun 2005 - 13:19:34 CEST

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:05 CET