[ale] Setting up pseudo-printer

Dow Hurst dhurst at kennesaw.edu
Fri Jan 16 15:28:33 EST 2004


If your CUPS backend can print the image then just send the 
image and let CUPS figure out what to do with it.  If you 
don't have that setup, then, if your viewer supports 
printing to postscript or a filetype that your print system 
understands, and if the viewer can do stdin and stdout:

viewer < ./file >| lpr

However, even the lp system can use filters, so a little 
searching might find a HOWTO on setting a filter that would 
do what you want.  The Netpbm library is a powerful package 
for converting image files.  I looked at a tiff2ps package 
that looked very nice.  I don't have the link for that with me.

Am I understanding the question correctly?  Which is that 
you want to print an image?  Gimp will print images 
fantastically after you set it up for your printer.
Dow


John Mills wrote:
> ALErs -
> 
> I have a script to pipe through a decoding filter, and uses 'display' to
> show an image on the screen. For example, I can show an image with:
>  % cat <encoded_jpeg_file> | /usr/local/bin/viewer_filter
> 
> I'm having some trouble setting this up as a printer, so that I could
> invoke it with [say]:
>  % lpr -P viewer <encoded_jpeg_file>
> 
> I'm running RH-7.3. Using the printer configuration tool I defined
> 'viewer' as a text printer, connected to /dev/null. I then went to
> /etc/printcap and made viewer's if=/usr/local/bin/viewer_filter
> 
> This doesn't work. Print jobs to 'viewer' just end up as files in 
> /var/spool/lpd/viewer/
> 
> Any hints on setting this up?
> 
> TIA.
> 
>  - John Mills
>    john.m.mills at alum.mit.edu
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 

-- 
__________________________________________________________
Dow Hurst                  Office: 770-499-3428            *
Systems Support Specialist    Fax: 770-423-6744            *
1000 Chastain Rd. Bldg. 12                                 *
Chemistry Department SC428  Email:   dhurst at kennesaw.edu   *
Kennesaw State University         Dow.Hurst at mindspring.com *
Kennesaw, GA 30144                                         *
************************************************************
This message (including any attachments) contains          *
confidential information intended for a specific individual*
and purpose, and is protected by law.  If you are not the  *
intended recipient, you should delete this message and are *
hereby notified that any disclosure, copying, distribution *
of this message, or the taking of any action based on it,  *
is strictly prohibited.                                    *
************************************************************



More information about the Ale mailing list