From owner-freebsd-questions@FreeBSD.ORG Fri Aug 8 06:02:18 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E2B6DC24 for ; Fri, 8 Aug 2014 06:02:17 +0000 (UTC) Received: from nlpiport16.prodigy.net.mx (nlpiport16.prodigy.net.mx [148.235.52.21]) by mx1.freebsd.org (Postfix) with ESMTP id A804F2EEE for ; Fri, 8 Aug 2014 06:02:17 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.01,823,1400043600"; d="scan'208";a="1003562181" Received: from nlpiport03.prodigy.net.mx ([148.235.52.111]) by nlpiport16.prodigy.net.mx with ESMTP; 08 Aug 2014 00:57:09 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuYGAE9l5FO9qp2K/2dsb2JhbABaFoJ3UleteAEBAQIBBp5VghaFKQkBgRAXd4QEAQQBVjMLIRMSDyoeBgESiDoKC8QcF4V8iVeESwWLFoodhmcBgVSTHIN3HS8B Received: from dsl-189-170-157-138-dyn.prod-infinitum.com.mx (HELO morena.maps.net) ([189.170.157.138]) by nlpiport03.prodigy.net.mx with SMTP; 08 Aug 2014 00:57:08 -0500 Date: Thu, 7 Aug 2014 22:57:29 -0700 From: Martin Alejandro Paredes Sanchez To: freebsd-questions@freebsd.org, Beeblebrox Subject: Re: printcap configuration problem Message-ID: <20140807225729.69db80ef@morena.maps.net> In-Reply-To: <20140803083513.47e21f3b@rsbsd.rsb> References: <1405676044178-5929730.post@n5.nabble.com> <53C919E0.6070008@bananmonarki.se> <20140718183958.1864052a@rsbsd.rsb> <20140727221419.35efb9b0@morena.maps.net> <1406966714419-5934110.post@n5.nabble.com> <1406986762673-5934162.post@n5.nabble.com> <20140803083513.47e21f3b@rsbsd.rsb> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; i386-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2014 06:02:18 -0000 El Sun, 03 Aug 2014 08:35:13 +0300 Beeblebrox escribi=F3: > > Both cases are for use with a printer that understands PostScript=20 > > natively. A plain LaserJet 2100 does not, > Mine does, it's the 2100tn model, has native ps level-II > http://people.virginia.edu/~cavcomp2/printers/hp/2100/2100.htm >=20 If your printer support PS, you are 90% ready,most of the programs produce PS at the moment to print What are you printing? =46rom what program? >=20 > The ghostscript comment was referring to previous discussion - sorry > for the confusion: If I want to print in r: 300 x 300, the only way > that's going to happen is by sending it through ghostscript, if I > understand correctly? How could I modify psif so that "lpr -Php2100 > -r300 somefile.ps" would result in 1. check if ps 2. adjust for one > of available resolution options (300 OR 600). >=20 Careful, the command lpr -Php2100 -r300 somefile.ps might erase the file "somefile.ps", read the man of lpr -r Remove the file upon completion of spooling or upon completion of printing (with the -s option). It does not have a option for resolution LPR take a file and send to LPD and LPD spool the job in the spool directory, start the FILTER to process the job and send to the printer Since LPR only give the file to LPD LPD only handle the queue (spool) The FILTER is the only that can modify the job (file printed) To send options to the filter, you can use the option -Z of lpr -Z daemon-options Some spoolers, such as LPRng, accept additional per-job options using a `Z' control line. When -Z is specified, and -p (pr(1)) is not requested, the specified daemon-options will be passed to the remote LPRng spooler. But the filter need to take options from LPD control file (till here my explanation, since my point is, you need to read lpr manual to know what options can be used with lpr) If you make a program that understand 300dpi option, you can use the command lpr -Php2100 -Z300dpi somefile.ps You specify your filter (program) in the printcap file as if=3D/usr/local/libexec/filters/psif You should try apsfilter (is in ports), but I don remember that apsfilter accept option for resolution I am working in a input filter for LPR/LPD that accept most of CUPS options, if you want to try, let me know -HTH Martin Paredes