Not "hardwired", but you can script it using CUPS classes:
Code:
lp -d laser /path/to/file
lp -d inkjet /path/to/file
laser and inkjet are the names I told CUPS to use for the 2 printers here in the web interface on port 631/tcp. They have "official" names, but I don't remember those.
This assumes the files can be directly printed. Postscript and PDF files usually can.
How you determine the different type of file and which printer it should be sent at is left to you. You could use part of the name or look inside the file for keywords. There is a way to use inotify to watch an output directory, then have it do some processing for the files followed by printing. I know openoffice had a headless interface which could be used in batch programs to take a document and print it to PDF, for example. Suspect LibreOffice has a headless interface too? A quick web-search found this:
Code:
$ unoconv -f pdf mydocument.odt
Just tested it with a ODT that had 3 images inside (passport, immunization records, and something else) and it worked to create a PDF that looked fine. The unoconv manpage says this:
Code:
NAME
unoconv - convert any document from and to any LibreOffice supported format
That seems really handy to me.
Bookmarks