Results 1 to 3 of 3
Hey,
At the moment I'm having to open a load of PDF files, and print them one by one.. this is taking a while..
Is there any way I can ...
- 03-14-2007 #1Just Joined!
- Join Date
- Mar 2007
- Posts
- 2
Print pdf files in a folder?
Hey,
At the moment I'm having to open a load of PDF files, and print them one by one.. this is taking a while..
Is there any way I can dump them in a folder.. run a script inside the folder which will send each one to the printer?
the printer command I'm using is:
//usr/bin/lpr -Pinfrared-2ds
Thanks A lot,
Dan
(Using mandriva linux)
- 03-14-2007 #2
You sure can. This is a very simple task. We are going to loop through all files ending in .pdf in the current directory, and print them.
Just copy this script into the directory where you have the PDFs, make it executable, and run it from that directory.Code:#!/bin/bash for file in *.pdf; do /usr/bin/lpr -Pinfrared-2ds "$file" doneDISTRO=Arch
Registered Linux User #388732
- 03-15-2007 #3Just Joined!
- Join Date
- Mar 2007
- Posts
- 2
Excellent, Thankyou


Reply With Quote