print specific pages of a pdf from the command line?
Patton Echols
p.echols at comcast.net
Sat May 29 08:02:31 UTC 2010
H.S. wrote:
> Patton Echols wrote:
>
>> Doug Robinson wrote:
>>
>>> Hello all
>>> Is there any way to print, say 1 page of 5 of a pdf from the command
>>> line?
>>>
>>>
>>>
>> Have not tried this, but how about something like this:
>>
>> First a test:
>> $ lpr testdoc.pdf
>>
>
> Please correct me if I am wrong, but lpr does not understand PDF files,
> only ps files. So, whoever want to try a PDF file with this, be
> *absolutely* sure that it will work ... I have seen countless pages
> being spewed out by printers who were sent a PDF files instead of a PS.
>
> On the other hand, if 'lpr <PDF file>' works, I will be pleasantly
> surprised.
>
>
>
>
Indeed, a good reason to test. When I posted before, I did not have
access to a printer and could not test. I have now done so and, yes
"lpr <pdf file> works correctly. Also, the pdftk syntax I suggested
works as well.
--PE
More information about the ubuntu-users
mailing list