[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] User Problem with grops's Import.
From: |
Ralph Corderoy |
Subject: |
Re: [Groff] User Problem with grops's Import. |
Date: |
Mon, 27 May 2002 16:15:24 +0100 |
Hi,
Thanks to an off-list suggestion I'm laying some blame at the feet
of pnmtops and have tried an alternative method.
$ cat 1i.ps
%!PS-Adobe-2.0 EPSF-2.0
%%Creator: tenfingers
%%Title: noname.ps
%%Pages: 1
%%BoundingBox: 0 0 72 72
%%HiResBoundingBox: 0.000000 0.000000 71.999998 71.999998
%%EndComments
0 setlinewidth
0 0 moveto 0 72 rlineto 72 0 rlineto 0 -72 rlineto closepath stroke
showpage
The two Box active comments are from what gs tells me.
$ gs -q -sDEVICE=bbox 1i.ps
%%BoundingBox: 0 0 72 72
%%HiResBoundingBox: 0.000000 0.000000 71.999998 71.999998
>>showpage, press <return> to continue<<
GS>
And I'm still feeding it into
$ cat import.ex
.psbb 1i.ps
.
.sp 3i
\Z'\h'|0'\X'ps: import 1i.ps \n[llx] \n[lly] \n[urx] \n[ury] 72000 72000''
\Z'\h'|0'\D'l 1i -1i''
(.psbb ignores %%HiResBoundingBox but I thought I'd put it in anyhow.)
The resulting image is probably dead the right size, but it displaced
somewhat to the left.
I'd guess that the rounding of the %%BoundingBox figures is what could
be causing my problems.
For instance, with my original w.ps figure gs reports
%%BoundingBox: 301 357 311 405
%%HiResBoundingBox: 301.679991 357.479989 310.319991 404.519986
I'm coming to the opinion that %%BoundingBox is worse than useless
unless you can engineer %%BoundingBox to equal %%HiResBoundingBox.
Ralph.