# # foomatic,magicfilter
APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

2004/08/12 foomatic,magicfilter

I've removed advertising from most of this site and will eventually clean up the few pages where it remains.

While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.

If you found something useful today, please consider a small donation.



Some material is very old and may be incorrect today

© August 2004 Tony Lawrence

Print filters. Whether it's CUPS, LPRng or plain old LPD, you often need a filter in between application data and the physical printer. In olden times, you'd use specific filters for specific purposes, but the trend now is to Swiss army knife, do everything filters that consult config files or databases to determine their actions (which is often just calling Ghostscript with appropriate options).
http://www.pell.portland.or.us/~orc/Code/magicfilter/
http://www.linuxprinting.org/foomatic.html.

With some older lpd's (SCO's, for example), you couldn't specify a filter. We'd get around that by fronting with a Sys V printer where you could use a filter - an "interface script" that would end by sending to the lpd printer. More modern lpd's let you specify a "if=" line in printcap.

You can use your own filter scripts with CUPS, too, but you have to work within a "ppd" file. You just create the printer normally, but then change things. Your contribution would be a line added to the .ppd file that might look like:

*cupsFilter: "text/plain 0 MyFilter"
 

You'd create MyFilter in /usr/lib/cups/filter/ and the ppd file would be /etc/cups/ppd/queue-name.ppd


If you found something useful today, please consider a small donation.



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> foomatic,magicfilter


Inexpensive and informative Apple related e-books:

Photos: A Take Control Crash Course

Take control of Apple TV, Second Edition

Are Your Bits Flipped?

Take Control of iCloud, Fifth Edition

Take Control of OS X Server





More Articles by © Tony Lawrence





Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





I am not out to destroy Microsoft, that would be a completely unintended side effect. (Linus Torvalds)




Linux posts

Troubleshooting posts


This post tagged:

CUPS

Printing

UnixWords



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode