delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/28/11:06:48

X-Spam-Check-By: sourceware.org
Date: Tue, 28 Feb 2006 08:06:37 -0800
From: George <d1945 AT sbcglobal DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: Correct device name for printing a PDF from Ghostview
Message-ID: <20060228160637.GA996@home>
Reply-To: George <d1945 AT sbcglobal DOT net>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <44031736 DOT 3000400 AT yahoo DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0602271020210 DOT 21682 AT access1 DOT cims DOT nyu DOT edu> <440327B4 DOT 6030000 AT yahoo DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0602271220400 DOT 10223 AT access1 DOT cims DOT nyu DOT edu>
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.4.63.0602271220400.10223@access1.cims.nyu.edu>
User-Agent: Mutt/1.4.2.1i
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mon, Feb 27, 2006 at 12:21:52PM -0500, Igor Peshansky wrote:
> On Mon, 27 Feb 2006, Keith Christian wrote:
> 
> > Igor Peshansky wrote:
> > > 'lpr -P "hp officejet 6100 series"' (yes, with the double quotes)
> > > should work.
> >
> > Thanks - almost there - The Officejet printer printed raw Postscript
> > commands instead of the document.  For example, the first line of
> > the printout was:
> >
> > %!PS-Adobe-3.0
> > %%Pages: (atend)
> > %%BoundingBox: 1 49 594 747
> > ...etc...etc..etc..etc...
> >
> > Other suggestions appreciated.
> 
> Ah, right.  lpr just sends the raw output to the printer -- you need
> to add a filter of some sort.  Unfortunately, I can't think of the
> exact way right now -- I just know it's possible.  Perhaps someone
> else will chime in with a solution.

Well, the first step might be to rename the printer to something more
sane and use the "Comment" field for descriptive text?  ;-)

I think you're asking about the device names displayed in 'gs -h'.  I've
only glanced at the documentation for gs, but IIRC gv does allow you to
define a print command.  In that regard, a variation on any of the
following should work for you:

# Printing PDFs (note the recurring postscript theme)
export PRINTER=hp4050tn ; a2ps myfile.pdf
acroread -toPostscript myfile.pdf | lpr -d hp4050tn
xpdf myfile.pdf -ps | lpr
pdf2ps myfile.pdf && cat myfile.ps | lpr

Personally, I print directly from Acrobat after generating the PDF and
examing the final output.  

But while you're testing things out ...

# Bash alias to manage (graphically) installed printers
rundll32 SHELL32.DLL,SHHelpShortcuts_RunDLL PrintersFolder

# Bash alias to manage (graphically) the printer queue
rundll32 PRINTUI.DLL,PrintUIEntry /o /n\hp4050tn &

# See also
lpq [...]

Regards.

-- 
George

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019