lpr to print files with different names and directories

719 views Asked by At

I have a script witch use lpr to print the output to a PDF file. I would like to change the location or even the file name of the saved file. I read several forums about lpr and did not find anything on how to specify the name and the directory of the printed pdf. Instead I always get a standard name in my PDF directory.

Thank you!

1

There are 1 answers

2
TeTeT On BEST ANSWER

Take a look at cups-pdf, https://help.ubuntu.com/community/PDFPrinting . You can configure the output directory and filename with it. The configuration file is /etc/cups/cups-pdf.conf.