Ok, another cup of coffee and another idea. :) I've put in a hack by duping the printcap entry for "lp" and changing the DPI to 100 (and creating/linking the appropriate files and directories referenced therein). The new printcap entry looks like this: lores|lp5|cdj850-letter-auto-color-100|cdj850 letter auto color 100:\ :lp=/dev/null:\ :sd=/var/spool/lpd/cdj850-letter-auto-color-100:\ :lf=/var/spool/lpd/cdj850-letter-auto-color-100/log:\ :af=/var/spool/lpd/cdj850-letter-auto-color-100/acct:\ :if=/var/lib/apsfilter/bin/cdj850-letter-auto-color-100:\ :la@:mx#0:\ :tr=:cl:sh:sf: Then in /etc/apsfilterrc.cdj850 I put: if [ "$DPI" = "100" ] ; then GS_FEATURES="-dFIXEDMEDIA -dQuality=-1" else GS_FEATURES="-dFIXEDMEDIA -dQuality=1" fi Now if I print to "lores" I get draft mode, while if I print to "lp" I get presentation mode. Good enough. At least I think it's good enough.. I printed something ok, but I'm logging in remotely so I'll have to wait to see if the quality is as I intended. :) I'm still interested in a "real" fix for this, but this should work for now. John Grant said:
I just installed apsfilter to help me print to an HP DeskJet 870. This was a minor challenge because the printer is on a LocalTalk connection. Fortunately I eventually discovered the REMOTE_PRINTER setting in the apsfilterrc file and the "-E" (NOT "-e") parameter on pap. My life would have been easier had the Mac ppl on the LAN let me connect the printer directly to the linux box, but they don't appreciate the finer points of linux (yet) and the printer won't let me connect both the localtalk port and the parallel/printer port at the same time. Oh well.
Anyways, I can now print from Linux without interfering with the Mac users, and I've even set up a virtual LaserWriter interface for them, should they care to use it. One thing I'm still having trouble with is that I'd like to be able to select a setting for "draft" or "presentation" on a per-print basis. I can do this by manually invoking gs and giving it a "-sQuality=-1" or "-sQuality=1", but how do I do this within the framework set up by apsfilter? I can set the GS_FEATURES[*] in apsfilterrc.cdj850 to one or the other, but how do I swap between the two?
After getting so close with apsfilter I'd hate to have to build my own printcap entry after all.
TIA,
-John
[*] putting "-dFIXEDMEDIA" in GS_FEATURES lets you select between landscape and portrait mode from a Mac... took me a while to figure out that one.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/