Mission Accomplished! My printer driver now has a MirrorPrint Option, and selecting it enables Mirror Printing. For convenience (since I don't see a client side option to flip mirror printing), I have a doppleganger of my regular printer, and I named it MirrorTest - screenshot below. When I need a mirror print, I just send it to the mirror printer.
Actual Changes
Here's the relevant excerpt (added) in /etc/cups/ppd/MirrorTest.ppd
(I added this UI option right below the Toner option). Excerpt adds a MirrorPrint Toggle (boolean) to the printer defaults setup. When enabled - the printer will print in mirror mode.
*%=== Mirror Printing ================================
*OpenGroup: General
*OpenUI *MirrorPrint/Mirror Print: Boolean
*OrderDependency: 110 AnySetup *MirrorPrint
*DefaultMirrorPrint: True
*MirrorPrint True/MirrorPrint: "<>setpagedevice"
*MirrorPrint False/Normal: ""
*CloseUI: *MirrorPrint
For further convenience (making sure that a new printer installation didn't mess up my custom changes, I also updated the relevant ppd file in /usr/share/cups/model/
. Whenever you add a new printer - CUPS will use the corresponding model ppd as a base, and it will apply any settings changes from configuring default to the copied ppd file in /etc/cups/ppd/your_printer.ppd
.
Hope this helps if someone else is also looking to do something similar!