Deutsch   English   Français   Italiano  
<vma15p$3buad$2@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Rich <rich@example.invalid>
Newsgroups: comp.misc
Subject: Re: terminal only for two weeks
Date: Thu, 16 Jan 2025 04:15:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <vma15p$3buad$2@dont-email.me>
References: <67447ce1$0$22$882e4bbb@reader.netnews.com> <vm1hk4$1etjc$3@dont-email.me> <87bjwb4jat.fsf@example.com> <ffbaedfa-daa4-445f-555c-afb7937f8fc4@example.net> <87plkq34b8.fsf@example.com> <87o7071s35.fsf@example.com>
Injection-Date: Thu, 16 Jan 2025 05:15:53 +0100 (CET)
Injection-Info: dont-email.me; posting-host="e883e0f3b2b433100952970dffbd380e";
	logging-data="3537229"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18+KghuPbKDebtSIT73+qQ3"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:P5IqlEufAA2IsgA1wQ4psG7p44Q=

Salvador Mirzo <smirzo@example.com> wrote:
> Salvador Mirzo <smirzo@example.com> writes:
> 
> [...]
> 
>>> I use qpdf. Has sessions, and is fairly light weight.
>>
>> Wonderful!  Pretty nice as well.  Very easy to use.  Now, it can't seem
>> to use lpr for printing?  That's how I print. :) But I can workaround it
>> by figuring out how to tell lpr to tell my printer to only print a few
>> pages I'm interested in and then use the command line.  Thanks for
>> mentioning qpdf.
> 
> I suspect I imagine wrong how things actually work. I thought perhaps
> there would be a command line such as ``lpr --pages 7-14''.  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.

Yes, selecting "which pages" happens before the result gets sent to lpr 
(or cups).

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

If you are dealing with pdf files, then pdftk 
<https://en.wikipedia.org/wiki/PDFtk> works very well of doing various 
transforms on pdf files (including selecting a subset of pages, that do 
not have to all be contiguous).

If you have actual postscript files, you can use ghostscript from the 
command line to "distill" them to pdf (note ghostscrpts "pdfwrite" 
output driver) and then use pdftk for further transforming.