Re: terminal only for two weeks

Liste des GroupesRevenir à c misc 
Sujet : Re: terminal only for two weeks
De : smirzo (at) *nospam* example.com (Salvador Mirzo)
Groupes : comp.misc
Date : 12. Feb 2025, 17:12:42
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <87frkjuop1.fsf@example.com>
References : 1 2 3 4 5 6 7
Ivan Shmakov <ivan@siamics.netREMOVE.invalid> writes:

On 2025-01-16, Salvador Mirzo wrote:
>
 > I suspect I imagine wrong how things actually work.  I thought
 > perhaps there would be a command line such as ``lpr --pages 7-14''.
>
As has already been pointed in this thread, CUPS, a fairly
common choice for a printer spooler in GNU/Linux systems,
provides lp(1) command that does have just such an option.

Thanks for the information.  It turns out I'm not being able to print
two-sided-long-edge with CUPS and my Brother HL-L2360DW.  I resorted to
using /etc/printcap and lpd's lpr (not CUPS's lpr) because I can then
set my printer to always do two-sided-long-edge, which is nearly 100% of
the way I print.

 > Now I believe a program like evince generates a PostScript of
 > the pages you asked it to and then sends this complete PostScript
 > document of the pages you requested to a pipe or file on disk
 > that lpr sends to the printer.
>
AIUI, traditional lpd(8) / lpr(1) do require the file to be
preprocessed in such a way before it is submitted for printing,
but even then, they do /not/ require for the file to be
PostScript: it's possible to setup the respective filters to
accept other formats, such as PDF.

That's what I did as well.  I use a filter called ps2pcl.

lp|remote|brother|Brother HL-L2360DW:\
  :lp=9100@BRWB052162167A6:\
  :if=/usr/local/libexec/ps2pcl:\
  :sh:sd=/var/spool/output/lpd:\
  :lf=/var/log/lpd-errs:

But today I learned that the Brother HL-L2360DW supports PostScript and
I was able to set it up that way with CUPS.  I just don't use because I
never want two-sided-short-edge or one-sided, which is all I can get
with CUPS for whatever reason.

 > So, if qpdf doesn't do the same, I'm out of luck in terms of
 > printing with lpr.  But I think I can find a program that takes
 > page ranges and transformations like scaling and produces a
 > PostScript document that I can send to lpr, so I can use qpdfview
 > and use the command line to print stuff out.
>
I'm not too familiar with qpdf(1) (and I don't think I've ever
used qpdfview [*]), but it does have a --pages option.  E. g.:

Turns out qpdfview is a pretty usable PDF viewer and it's the one I'm
using the most here.  I think qpdfview is the closest thing to
SumatraPDF (on Windows), my favorite.

$ qpdf --empty --pages in.pdf 5-8 -- out.pdf
$ qpdf  in.pdf --pages . 5-8 -- out.pdf

Thanks!  That works.

(The second variant preserves the input document metadata,
which isn't probably of much use for printing anyway.)

Good to know.  Sometimes we produce PDF for screen viewing.

... A somewhat little-known fact is that once uncompressed, PDF
is largely a text file (perhaps unsurprising, given it comes
from the same company that created PostScript), though employing
byte offsets rather unrestrictedly.
>
qpdf(1) has a --qdf option that undoes compressesion and annotates
the file in such a way that the companion fix-qdf program can
fix the byte offsets, at least in certain cases, thus allowing the
PDF file to be edited with a text editor.  (Though probably using
a library, such as PDF::API2 for Perl, would be more practical
than trying to, say, adapt sed(1) for automated edits in this case.)

You seem to know a lot about PostScript.  So here's a question.  When I
want to print two-sided-long-edge, is that a command included in the
PostScript document itself (and then sent to the printer)?

Date Sujet#  Auteur
25 Nov 24 * terminal only for two weeks85Retrograde
25 Nov 24 +- Re: terminal only for two weeks1D
25 Nov 24 +* Re: terminal only for two weeks13Lawrence D'Oliveiro
26 Nov 24 i+* Re: terminal only for two weeks2Mike Spencer
26 Nov 24 ii`- Re: terminal only for two weeks1Lawrence D'Oliveiro
26 Nov 24 i+* Re: terminal only for two weeks2yeti
26 Nov 24 ii`- Re: terminal only for two weeks1Lawrence D'Oliveiro
30 Nov 24 i`* Re: terminal only for two weeks8candycanearter07
30 Nov 24 i +* Re: terminal only for two weeks2yeti
1 Dec 24 i i`- Re: terminal only for two weeks1candycanearter07
30 Nov 24 i `* Re: terminal only for two weeks5Lawrence D'Oliveiro
1 Dec 24 i  `* Re: terminal only for two weeks4candycanearter07
2 Dec 24 i   `* Re: terminal only for two weeks3Lawrence D'Oliveiro
2 Dec 24 i    `* Re: terminal only for two weeks2candycanearter07
2 Dec 24 i     `- Re: terminal only for two weeks1Lawrence D'Oliveiro
26 Nov 24 +* Re: terminal only for two weeks51John McCue
26 Nov 24 i`* Re: terminal only for two weeks50D
26 Nov 24 i +* Re: terminal only for two weeks48yeti
26 Nov 24 i i`* Re: terminal only for two weeks47D
26 Nov 24 i i +* Re: terminal only for two weeks10Computer Nerd Kev
27 Nov 24 i i i`* Re: terminal only for two weeks9D
27 Nov 24 i i i `* Re: terminal only for two weeks8Computer Nerd Kev
28 Nov 24 i i i  +- Re: terminal only for two weeks1yeti
28 Nov 24 i i i  `* Re: terminal only for two weeks6D
28 Nov 24 i i i   `* Re: terminal only for two weeks5Computer Nerd Kev
28 Nov 24 i i i    +- Re: terminal only for two weeks1D
29 Nov 24 i i i    `* Re: terminal only for two weeks3yeti
29 Nov 24 i i i     `* Re: terminal only for two weeks2D
29 Nov 24 i i i      `- Re: terminal only for two weeks1D
26 Nov 24 i i `* Re: terminal only for two weeks36Mike Spencer
27 Nov 24 i i  +* Re: terminal only for two weeks7D
28 Nov 24 i i  i`* Re: terminal only for two weeks6Mike Spencer
28 Nov 24 i i  i +- Re: terminal only for two weeks1Lawrence D'Oliveiro
28 Nov 24 i i  i +- Re: terminal only for two weeks1D
20 Dec 24 i i  i `* URIs within URIs: google.com/url?q= et al.3Ivan Shmakov
20 Dec 24 i i  i  +- Re: URIs within URIs: google.com/url?q= et al.1Andy Burns
22 Dec 24 i i  i  `- Re: URIs within URIs: google.com/url?q= et al.1Mike Spencer
4 Dec 24 i i  `* Re: terminal only for two weeks28Oregonian Haruspex
4 Dec 24 i i   `* Re: terminal only for two weeks27Lawrence D'Oliveiro
4 Dec 24 i i    `* Re: terminal only for two weeks26candycanearter07
5 Dec 24 i i     +* Re: terminal only for two weeks23Lawrence D'Oliveiro
7 Dec 24 i i     i`* Re: terminal only for two weeks22Computer Nerd Kev
8 Dec 24 i i     i `* Re: terminal only for two weeks21root
13 Jan 25 i i     i  +* Re: terminal only for two weeks19Bozo User
13 Jan 25 i i     i  i+* Re: terminal only for two weeks3D
13 Jan 25 i i     i  ii`* Re: terminal only for two weeks2Computer Nerd Kev
14 Jan 25 i i     i  ii `- Re: terminal only for two weeks1D
16 Jan 25 i i     i  i`* web15Ivan Shmakov
16 Jan 25 i i     i  i `* Re: web14Computer Nerd Kev
17 Jan 25 i i     i  i  +* Re: web2yeti
22 Mar 25 i i     i  i  i`- Re: web1anthk
18 Jan 25 i i     i  i  `* Re: web11Ivan Shmakov
19 Jan 25 i i     i  i   +* Re: web3Computer Nerd Kev
29 Jan 25 i i     i  i   i`* Re: web2candycanearter07
4 Feb 25 i i     i  i   i `- Re: web1Lawrence D'Oliveiro
19 Jan 25 i i     i  i   `* Re: web7Ben Collver
19 Jan 25 i i     i  i    `* Re: web6yeti
19 Jan 25 i i     i  i     +- Re: web1Sn!pe
19 Jan 25 i i     i  i     +- Re: web1Ivan Shmakov
20 Jan 25 i i     i  i     +* Re: web2Ben Collver
24 Jan 25 i i     i  i     i`- Re: web1Ivan Shmakov
20 Jan 25 i i     i  i     `- Re: web1news
13 Jan 25 i i     i  `- Re: terminal only for two weeks1Bozo User
5 Dec 24 i i     `* Re: terminal only for two weeks2yeti
16 Jan 25 i i      `- Re: terminal only for two weeks1yeti
22 Mar 25 i `- Re: terminal only for two weeks1anthk
28 Nov 24 +- Re: terminal only for two weeks1Anssi Saari
13 Jan 25 `* Re: terminal only for two weeks18Bozo User
13 Jan 25  `* Re: terminal only for two weeks17Salvador Mirzo
13 Jan 25   `* Re: terminal only for two weeks16D
13 Jan 25    `* Re: terminal only for two weeks15Salvador Mirzo
14 Jan 25     +- Re: terminal only for two weeks1D
16 Jan 25     `* Re: terminal only for two weeks13Salvador Mirzo
16 Jan 25      +- Re: terminal only for two weeks1Rich
16 Jan 25      +- Re: terminal only for two weeks1Computer Nerd Kev
21 Jan 25      +- Re: terminal only for two weeks1Lawrence D'Oliveiro
23 Jan 25      `* Re: terminal only for two weeks9Ivan Shmakov
12 Feb 25       `* Re: terminal only for two weeks8Salvador Mirzo
16 Feb 25        `* Re: terminal only for two weeks7Jerry Peters
17 Feb 25         `* Re: terminal only for two weeks6Salvador Mirzo
17 Feb 25          +- Re: terminal only for two weeks1Salvador Mirzo
17 Feb 25          +* Re: terminal only for two weeks2Lawrence D'Oliveiro
19 Feb 25          i`- Re: terminal only for two weeks1Salvador Mirzo
17 Feb 25          `* Re: terminal only for two weeks2Scott Dorsey
19 Feb 25           `- Re: terminal only for two weeks1Salvador Mirzo

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal