Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jan 2002 16:50:03 +0300 (MSK)
From:      Alexey Koptsevich <kopts@astro.ioffe.rssi.ru>
To:        questions@freebsd.org
Subject:   duplex networked printer
Message-ID:  <Pine.BSF.4.21.0201091645530.16266-100000@astro.ioffe.rssi.ru>

next in thread | raw e-mail | index | archive | help

Hello,

I have a trouble setting duplex printing on HP 4050 with JetDirect
installed. It prints duplex if connected via lpt0 and the filter below is
used. But it does not do duplex if connected via ethernet, only simplex. I
tried some filters, options in apsfilter -- no changes. Your help is
greatly appreciated!

Thanks,
Alex


> > > #!/usr/bin/perl -s
> > > 
> > > # psduplex - insert PostScript code to set and unset duplexmode for this job
> > > #
> > > # usage: psduplex [-tumble], default "edge"
> > > #
> > > # Steve Kinzler, kinzler@cs.indiana.edu, October 1991
> > > 
> > > $_ = <>;
> > > unless (/^%!/) {                # not PostScript, pass through as is
> > >         print;
> > >         while (<>) {
> > >                 print;
> > >         }
> > >         exit;
> > > }
> > > 
> > > print;
> > > while (<>) {
> > >         last unless /^\s*%/;
> > >         print;
> > > }
> > > 
> > > print "statusdict begin\n\ttrue setduplexmode\n";
> > > print "\ttrue settumble\n" if $tumble;
> > > print "end\n";
> > > 
> > > print;
> > > while (<>) {
> > >         print;
> > > }
> > > 
> > > print "statusdict begin\n\tfalse setduplexmode\n";
> > > print "\tfalse settumble\n" if $tumble;
> > > print "end\n";


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0201091645530.16266-100000>