0

在这里,我再次提出 PostScript 问题。

这次我试图打印这个简单的文件:

%!PS-Adobe-3.0
%%DocumentData: Clean7Bit
%%Requirements: color
%%LanguageLevel: 2
% 72 PostScript points = 1 inch
% 1 inch = 2.54 cm
%%PageBoundingBox: 8 8 300 36
<< /PageSize [300 36] >> setpagedevice

<< /Orientation 3>> setpagedevice

/ArialBold findfont 10 scalefont setfont
30 18 moveto (Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet) show
showpage

如您所见,它只有一行,我要打印的标签也非常小,它是 12 毫米宽,只要您需要(通常)。

我正在将文本正确打印到标签上,但只能打印到第二个“amet”。在那之后,打印机停下来并说他已经完成了,并且他总是打印完全相同的长度(9cm),而不管我设置的页面尺寸是多少。

任何人都知道我做错了什么?

我用来打印的命令是:

C:\gs\gswin32c.exe -sDEVICE=mswinpr2 -dNoCancel -dNOPAUSE -dSAFER -sOutputFile="%%printer%%DYMO LabelManager PnP" -q "C:\gs\dymo.ps" -c quit
4

1 回答 1

1

I would always start by using the display device. If you remove the -sDEVICE=mswinpr2 Ghostscript will open a window and show you what it thinks the result will be, if that is incorrect then the mswinpr2 isn't going to be better. Try that and see what happens, this will also show you if you are falling off the media as the GS window is only white where the media is set.

于 2013-04-16T20:18:47.120 回答