兄弟QL-720NW指定介质尺寸似乎被忽略 [英] Brother QL-720NW specifying media size seems ignored
问题描述
在Brother QL-720NW上打印时,lpr
命令将忽略-o media=...
.我使用以下方法添加了自定义纸张尺寸:
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
在从CUPS 默认设置中为打印机设置新尺寸时有效.这修改了ppd文件并产生了(以CUPS为单位):
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
其中新介质的名称为om_br-l-0-b-3-e-01-a-5-f-9-a-9_61.91x24.96mm
.
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
.
但是,假设我要添加几个额外的自定义纸张尺寸,似乎没有办法直接在lpr
命令中指定一个,例如:
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
这将以默认尺寸打印,或者使QL-720NW的电源按钮闪烁红色.
This will either print on the default size or make the power button of the QL-720NW blink red.
有什么主意吗?它在Ubuntu 16.04上运行.
Any idea? This is running on Ubuntu 16.04.
推荐答案
已经很晚了,但也许可以对某人有所帮助.正确的解决方案是:
It's late, but maybe it can help someone. The correct solution is:
sudo brpapertoollpr_ql720nw -P QL720NW -n "62mmx25mm" -w 62 -h 25
请勿留出足够的空间
这篇关于兄弟QL-720NW指定介质尺寸似乎被忽略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!