delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/06/28/05:35:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=J20zQ/NEcMizR3RJ
JCnw7iKtXMjJD/yxcq6L/e4tLr8AiqeqrcpyIwypOGbm7EKiZEgUXrc5crRbQ64Y
yRmbqno0p9ddt5zOqfgfmGcKREinNk4iBmFQIfLjwBLpIvc6Fp5LKmnqdkBJxkzE
PLz7wVNHVGb4ovSewRBgRqc6cAw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=B4KgF8tleZxP7k6ofaX87P
Lamuc=; b=rIx3XtMmBI5Exm+b3GR4fYktv7TOkk2bsTiSEZtwtAmUhJEGz8PKAr
qW595DNROQHjpz1hOkayaI69LYz0xJ4YxoJ9G68muj76ptod6AKsZt21Ff9xspu/
UTkbkiU9UAiwwSwRt70vRskAIj/FY8fo//4RSLC7W2Lxxj5DFrstM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Sat, 28 Jun 2014 13:23:35 +0400
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <195533795.20140628132335@yandex.ru>
To: David Masterson <dsmasterson AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: LPR output disappearing
In-Reply-To: <86mwcxd15w.fsf@gmail.com>
References: <868uoi9k6p DOT fsf AT gmail DOT com> <76430859 DOT 20140628042746 AT yandex DOT ru> <86mwcxd15w DOT fsf AT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, David Masterson!

>>> I created a PDF file with Org-Mode in Emacs and used "gv" and "lpr" to
>>> try to output.  I have a Dell A10 printer attached to my Acer PC.  The
>>> output looked like it was going to work in that the Dell popup that
>>> shows that the printer is about to print something popped up.  However,
>>> it took a long time and eventually did nothing.  I turned around and
>>> printed the same file with Adobe Acrobat Reader and it printed fine, so
>>> I guess the file is proper PDF.  This is my first time attempting to do
>>> a printout with "lpr" in Cygwin, so maybe I haven't configured something
>>> appropriately or given lpr the proper arguments (I think it was given
>>> just the filename).
>>
>>> Anyone know what's wrong?
>>
>> If I understand you correctly, you've just tried to send PDF over to
>> the printer through LPR?  I'm afraid, it just not going to work, at
>> all.  LPR, in essence, is just a file transfer tool. It doesn't do any
>> format conversion. Unless your printer natively understand PDF format
>> (which I highly doubt), it would only output random ASCII garbage, or,
>> as you've found out, nothing at best. (Nothing is actually the best
>> possible output, trust me...)

> I understand what you are saying here.  I had forgotten this issue and
> have forgotten some of the answer to this issue.  Let me summarize
> again:

> 1. I have a PDF file.
> 2. The PDF file prints fine via AcroRead under Windows 8.1.
> 3. The PDF file displays properly via GV under Cygwin.
> 4. The PDF file doesn't print via GV to LPR from Cygwin.
> 4.1. The printout causes the usual print popup.
> 4.2. The popup takes a long time.
> 4.3. Ultimately, no printout comes out.
> 5. You suggest that the PDF file is going to the printer by LPR, but is
> being ignored because it needs to be processed into a print compatible
> format.

Ahha, that makes more sense. Sorry, I didn't understand your original post.

> My questions are:

> 1. GV is displaying the file correctly, so hasn't it already been
> processed before sending it to LPR?

That's two different things. But I suppose it should convert to something
printer(-driver)-digestible (i.e. PostScript).
Out of pure curiosity, have you tried to install "Print services for unix"?
Might not be available in your Windows version, though. Comes with Pro and
up. Also have a catch of not accepting localhost connections, even though it
listening on 0.0.0.0.

> 2. LPR is the default print mechanism for GV, so wasn't this issue
> previously handled?
> 3. If not, how do people send PDF/PS printouts from Cygwin to the
> underlying, locally attached Windows printer?
> 4. Could this be a simple case of improper line endings (NL vs CRLF)
> and, if so, shouldn't LPR handle that conversion?

I don't know, sorry, have not printed anything from Cygwin.

> Forgive my English and repeated answers -- problems of trying to use the
> iPhone for email when your fingers don't always do what you want... :-(

Well, at least, now we know that iPhone email client properly insert threading
headers :D


--
WBR,
Andrey Repin (anrdaemon AT yandex DOT ru) 28.06.2014, <13:02>

Sorry for my terrible english...


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

- Raw text -


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