after conversion with 'pstops' option '-o media=Tray2' is ignored
ekkard gerlach
jack at aiai.de
Wed Jun 18 14:40:09 PDT 2008
ekkard gerlach schrieb:
> After a conversion of a simple ps-file hl5250kasse_raw.ps with 'pstops'
> to hl5250kasse_raw.ps the option e.g. '-o media=Tray2' is ignored. The
> second ps-file can't be printed to a certain tray using CUPS. I tried
> tray1, tray2, MPTray, Tray3 is default. Printer is HL 5250. WHY?
>
> Look at the files:
> http://aiai.de/hl5250kasse_raw.ps
> conversion: pstops "0 at 1(3cm,0cm)" hl5250kasse_raw.ps hl5250kasse.ps
> Result: http://aiai.de/hl5250kasse.ps
>
> The conversion moves the content 3cm to right.
>
> lp -d pc16_ps -o media=Tray2 hl5250kasse_raw.ps is printed to Tray2
> but not:
> lp -d pc16_ps -o media=Tray2 hl5250kasse.ps
> hl5250kasse.ps is printed to default tray (MPTray)
a correction: default tray is tray3
>
>
> diff hl5250kasse_raw.ps hl5250kasse.ps
> ======================================
> 3c3
> < %%Pages: (atend)
> ---
> > %%Pages: 1 0
> 4a5,36
> > %%BeginProcSet: PStoPS 1 15
> > userdict begin
> > [/showpage/erasepage/copypage]{dup where{pop dup load
> > type/operatortype eq{1 array cvx dup 0 3 index cvx put
> > bind def}{pop}ifelse}{pop}ifelse}forall
> > [/letter/legal/executivepage/a4/a4small/b5/com10envelope
> > /monarchenvelope/c5envelope/dlenvelope/lettersmall/note
> > /folio/quarto/a5]{dup where{dup wcheck{exch{}put}
> > {pop{}def}ifelse}{pop}ifelse}forall
> > /setpagedevice {pop}bind 1 index where{dup wcheck{3 1 roll put}
> > {pop def}ifelse}{def}ifelse
> > /PStoPSmatrix matrix currentmatrix def
> > /PStoPSxform matrix def/PStoPSclip{clippath}def
> > /defaultmatrix{PStoPSmatrix exch PStoPSxform exch concatmatrix}bind def
> > /initmatrix{matrix defaultmatrix setmatrix}bind def
> > /initclip[{matrix currentmatrix PStoPSmatrix setmatrix
> > [{currentpoint}stopped{$error/newerror false put{newpath}}
> > {/newpath cvx 3 1 roll/moveto cvx 4 array astore cvx}ifelse]
> > {[/newpath cvx{/moveto cvx}{/lineto cvx}
> > {/curveto cvx}{/closepath cvx}pathforall]cvx exch pop}
> > stopped{$error/errorname get/invalidaccess eq{cleartomark
> > $error/newerror false put cvx exec}{stop}ifelse}if}bind aload pop
> > /initclip dup load dup type dup/operatortype eq{pop exch pop}
> > {dup/arraytype eq exch/packedarraytype eq or
> > {dup xcheck{exch pop aload pop}{pop cvx}ifelse}
> > {pop cvx}ifelse}ifelse
> > {newpath PStoPSclip clip newpath exec setmatrix} bind aload pop]cvx def
> > /initgraphics{initmatrix newpath initclip 1 setlinewidth
> > 0 setlinecap 0 setlinejoin []0 setdash 0 setgray
> > 10 setmiterlimit}bind def
> > end
> > %%EndProcSet
> 132c164,176
> < %%Page: 1 1
> ---
> > userdict/PStoPSxform PStoPSmatrix matrix currentmatrix
> > matrix invertmatrix matrix concatmatrix
> > matrix invertmatrix put
> > %%Page: (0) 1
> > userdict/PStoPSsaved save put
> > PStoPSmatrix setmatrix
> > 85.039370 0.000000 translate
> > 1.000000 dup scale
> > userdict/PStoPSmatrix matrix currentmatrix put
> > userdict/PStoPSclip{0 0 moveto
> > 595.000000 0 rlineto 0 842.000000 rlineto -595.000000 0 rlineto
> > closepath}put initclip
> > PStoPSxform concat
> 176a221
> > PStoPSsaved restore
>
> How can I print the result hl5250kasse.ps to a certain tray?
>
> thx
> Ekkard
More information about the cups
mailing list