【发布时间】:2020-01-28 20:32:41
【问题描述】:
我遇到了 newpage 运算符的问题。我有以下代码
%!PS-Adobe-3.0
/txtArray [(a) (b) (c) (d)] def
/fontSize 12 def
/lineHeight fontSize def
/lineHeight lineHeight 1.5 mul def
/Arial findfont fontSize scalefont setfont
/x 50 def
/y 400 def
txtArray
{
/y y lineHeight sub def
x y moveto
show
} forall
showpage
100 200 moveto
(Hello) show
%%EOF
打印数组后我想要一个新页面,但我只能看到数组元素。不显示字符串“Hello”。在下一步中,我想在循环中编写 newpage 运算符,以便在每个数组元素之后获取一个新页面。
我该如何解决这个问题?
【问题讨论】:
标签: postscript