我安装了爱普生TM-T20在Ubuntu 12.04,使用官方driver。这是一台热敏打印机,我使用80毫米纸。打印与杯PostScript文档和热敏打印机
我的问题:当我打印的图像(使用PostScript文件),它浪费了大量的纸张,因为图像5厘米周围使用和图像,然后打印机发出25厘米的白皮书。
我使用下面的命令来将文档发送到打印机:
lpr -P tm-t20 -o document.ps
打印机打印图像(将200x200图像),但是首先发出很多非印刷纸。
打印机不被认可的CUPS(使用Web界面位于localhost:631)。然后我安装它使用以下步骤:
sudo lpadmin -p tm-t20 -E -v serial:/dev/ttyUSB0 -P /usr/share/ppd/epson-tm-t20-rastertotmt.ppd
然后打印机出现在CUPS网络接口和I配置它(波特率,位奇偶校验等)。当我发送一些文字
打印机工作正常。
这里是打印机PPD的一部分:
*DefaultPageRegion:RP80x297
*PageRegion RP80x297/Roll Paper 80 x 297 mm: "<</PageSize[204 841.8]/ ImagingBBox null>>setpagedevice"
*PageRegion RP58x297/Roll Paper 58 x 297 mm: "<</PageSize[141.7 841.8]/ ImagingBBox null>>setpagedevice"
*CloseUI: *PageRegion
*DefaultImageableArea: RP80x297
*ImageableArea RP80x297/Roll Paper 80 x 297 mm: "0 0 204 841.8"
*ImageableArea RP58x297/Roll Paper 58 x 297 mm: "0 0 141.7 841.8"
*DefaultPaperDimension: RP80x297
*PaperDimension RP80x297/Roll Paper 80 x 297 mm: "204 841.8"
*PaperDimension RP58x297/Roll Paper 58 x 297 mm: "141.7 841.8"
我想,这种浪费的论文是因为长期的297毫米出现在PPD文件。然后我尝试添加另一个100mm而不是297mm的配置,但问题仍然存在。
我也tryied添加标签%% DocumentMedia到PS文件,但同样的问题:
%!PS-Adobe-3.0
%%Creator: GIMP PostScript file plugin V 1.17 by Peter Kirchgessner
%%Title: yay.ps
%%CreationDate: Thu Sep 13 13:44:26 2012
%%DocumentData: Clean7Bit
%%LanguageLevel: 2
%%Pages: 1
%%BoundingBox: 14 14 215 215
%%
%%EndComments
%%DocumentMedia: Plain 72 72 0 white Plain
%%BeginProlog
% Use own dictionary to avoid conflicts
10 dict begin
%%EndProlog
%%Page: 1 1
% Translate for offset
14.173228346456694 14.173228346456694 translate
% Translate to begin of first scanline
0 199.99999999999997 translate
199.99999999999997 -199.99999999999997 scale
% Image geometry
200 200 8
% Transformation matrix
[ 200 0 0 200 0 0 ]
% Strings to hold RGB-samples per scanline
/rstr 200 string def
/gstr 200 string def
/bstr 200 string def
{currentfile /ASCII85Decode filter /RunLengthDecode filter rstr readstring pop}
{currentfile /ASCII85Decode filter /RunLengthDecode filter gstr readstring pop}
{currentfile /ASCII85Decode filter /RunLengthDecode filter bstr readstring pop}
true 3
%%BeginData: 14759 ASCII Bytes
任何想法?
打印机停止工作,现在有时打印,有时不打印。我会发布更多细节... – user1370912