Thursday, September 26, 2019

linux - Printing: Different pages from different feeds (pdf)


I've got a pdf document and want to print it about 100 times with a Kyocera fs 4020dn printer. I'd like to have the first page on colored paper.


Is it possible to tell the printer to take the first page from manual feed and the remaining pages from the regular cassette?


I know there are possibilities to do this in Word or OO but I don't know how to solve this for pdf files.


I'm using Linux (Kbuntu).


Answer



I solved my problem with a shell script:


#!/bin/sh
i=1
while [ $i -le ]
do
lp -o media= -P 1
lp -P 2-
i=`expr $i + 1`
done

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...