我喜欢创建自定义页面大小,以便在连接到 ubuntu 的打印机上打印。我喜欢创建 7 英寸宽和 3 英寸高。如何实现。
答案1
通过 CUPS 界面设置打印机http://localhost:631/admin
。执行此操作时,您可以选择各种打印机配置选项。另请阅读man lpoptions;man lpadmin
,如果您想要了解更多,请从开始man -k CUPS
。
我设置了三个 CUPS“队列”,它们都指向同一台物理打印机,以便我打印8 1/2 x 11
、Env10
信封或打字8163
标签。过去,我还设置了打印到A4
3 孔 8 1/2 x 11 的纸张上。
以下是我lpoptions -l
对每个当前队列的输出(列出了所有当前值,首字母*
标记了当前选定的值)(请注意纸张类型“ Custom.WIDTHxHEIGHT
”。我假设WIDTH
和HEIGHT
以英寸为单位,基于其他纸张类型)):
$ for i in $( lpstat -a | awk '{print $1}' ) ; do
> echo -e "\t\tprinter $i"
> lpoptions -p $i -l | grep '\*'
> echo
> done
printer deskjet
PageSize/Media Size: Card3x5 Card3x5.FB Hagaki.SM Hagaki.FB Hagaki Photo4x6 Photo4x6.FB A6.SM A6.FB A6 Photo5x7 Photo5x7.FB Card5x8.SM Card5x8 Oufuku.SM Oufuku.FB Oufuku A5.SM A5.FB A5 B5.SM B5 JB5.SM JB5.FB JB5 Executive.SM Executive 16k 8x10 *Letter.SM Letter.FB Letter A4.SM A4.FB A4 ExecutiveJIS FLSA Legal.SM Legal CDDVD80 CDDVD120 EnvA2 EnvC6 EnvChou4 EnvMonarch EnvDL Env10 EnvChou3 EnvC5 EnvB5 Custom.WIDTHxHEIGHT
Duplex/Double-Sided Printing: *DuplexNoTumble DuplexTumble None
InputSlot/Media Source: *Auto PhotoTray Upper Lower Envelope LargeCapacity Manual MPTray CDDVDTray
ColorModel/Output Mode: CMYGray KGray *RGB
MediaType/Media Type: *Automatic Plain Glossy TransparencyFilm CDDVDMedia
OutputMode/Print Quality: *Normal Draft Best Photo FastDraft
OptionDuplex/Duplexer Installed: False *True
printer envelope
PageSize/Media Size: Card3x5 Card3x5.FB Hagaki.SM Hagaki.FB Hagaki Photo4x6 Photo4x6.FB A6.SM A6.FB A6 Photo5x7 Photo5x7.FB Card5x8.SM Card5x8 Oufuku.SM Oufuku.FB Oufuku A5.SM A5.FB A5 B5.SM B5 JB5.SM JB5.FB JB5 Executive.SM Executive 16k 8x10 Letter.SM Letter.FB Letter A4.SM A4.FB A4 ExecutiveJIS FLSA Legal.SM Legal CDDVD80 CDDVD120 EnvA2 EnvC6 EnvChou4 EnvMonarch EnvDL *Env10 EnvChou3 EnvC5 EnvB5 Custom.WIDTHxHEIGHT
Duplex/Double-Sided Printing: DuplexNoTumble DuplexTumble *None
InputSlot/Media Source: *Auto PhotoTray Upper Lower Envelope LargeCapacity Manual MPTray CDDVDTray
ColorModel/Output Mode: CMYGray KGray *RGB
MediaType/Media Type: *Automatic Plain Glossy TransparencyFilm CDDVDMedia
OutputMode/Print Quality: Normal Draft *Best Photo FastDraft
OptionDuplex/Duplexer Installed: *False True
printer Labels8163
PageSize/Media Size: Card3x5 Card3x5.FB Hagaki.SM Hagaki.FB Hagaki Photo4x6 Photo4x6.FB A6.SM A6.FB A6 Photo5x7 Photo5x7.FB Card5x8.SM Card5x8 Oufuku.SM Oufuku.FB Oufuku A5.SM A5.FB A5 B5.SM B5 JB5.SM JB5.FB JB5 Executive.SM Executive 16k 8x10 Letter.SM *Letter.FB Letter A4.SM A4.FB A4 ExecutiveJIS FLSA Legal.SM Legal CDDVD80 CDDVD120 EnvA2 EnvC6 EnvChou4 EnvMonarch EnvDL Env10 EnvChou3 EnvC5 EnvB5 Custom.WIDTHxHEIGHT
Duplex/Double-Sided Printing: DuplexNoTumble DuplexTumble *None
InputSlot/Media Source: *Auto PhotoTray Upper Lower Envelope LargeCapacity Manual MPTray CDDVDTray
ColorModel/Output Mode: CMYGray KGray *RGB
MediaType/Media Type: *Automatic Plain Glossy TransparencyFilm CDDVDMedia
OutputMode/Print Quality: Normal Draft *Best Photo FastDraft
OptionDuplex/Duplexer Installed: False *True