The -o media=...
is being ignored by the lpr
command when printing on the Brother QL-720NW. I added custom paper sizes using:
sudo brpapertoollpr_ql720nw -P QL720NW -n "62mm x 25mm" -w 62 -h 25
which works when setting the new size from within CUPS as default for the printer. This modified the ppd file and yields (in CUPS):
Description: QL720NW
Location:
Driver: Brother QL-720NW CUPS v1.4 (grayscale)
Connection: ipp://10.200.200.95/ipp/print
Defaults: job-sheets=none, none media=om_br-l-0-b-3-e-01-a-5-f-9-a-9_61.91x24.96mm sides=one-sided
where the new medium has the weird name om_br-l-0-b-3-e-01-a-5-f-9-a-9_61.91x24.96mm
.
However, assuming that I'm adding a couple extra custom paper sizes, there seems to be no way for me to specify one in the lpr
command directly, such as:
lpr -P QL720NW -o media=om_br-l-0-b-3-e-01-a-5-f-9-a-9_61.91x30.96mm label_62x25.pdf
This will either print on the default size or make the power button of the QL-720NW blink red.
Any idea? This is running on Ubuntu 16.04.