One can call lpr to use cups-pdf printer to print a file to pdf, for instance foo.txt
lpr -P PDF foo.txt
When calling, the printer creates a directory called PDF in the $HOME directory and creates a file named foo.pdf.
This manual shows how to change the printers default directory. I'm wondering whether it is possible however to pass an option to the pdf printer that sets the output path specifically. Something like:
lpr -P PDF foo.txt -o bar.pdf
Such that only for this one call, the output path is bar.pdf.
Is this possible?