Re: terminal only for two weeks

Liste des GroupesRevenir à c misc 
Sujet : Re: terminal only for two weeks
De : ivan (at) *nospam* siamics.netREMOVE.invalid (Ivan Shmakov)
Groupes : comp.misc
Date : 23. Jan 2025, 20:33:36
Autres entêtes
Organisation : Dbus-free station.
Message-ID : <5Lra_5CB4XHr0riW@violet.siamics.net>
References : 1 2 3 4 5 6
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.

 > 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.

 > 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.:

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

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

... 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.)

    [*] Given a choice, I tend to prefer HTML.  If the document I'm
interested in is only available in a PDF version, I tend to
use pdftotext(1).  If that fails to produce a legible version,
I resort to Zathura, preferring it mostly for its UI.

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