On Mon, 15 Jun 1998, taupin wrote:

> Looking at pstoimg I find that it calls GS with the following (obcure) options:
> 
>   -  -g75x98   => quat does this mean ("man gs" is not very explicit) and which are 
>the units of
> numbers 75 and 98 (or other numbers in -g option)

-g stands for "Geometry". The dimension is 1/72 inches, as far as I know.

>   -  -dTextAlphaBits=4  => meaning?

This is for anti-aliasing, i.e. the output image contains shades of grey
to overcome the "steps" in low-resolution bitmap images.

>   -  GS>-67 -739 translate  => I undestand these are limite to the part to be 
>translated, but
> which are the units (pixels, inches, ?)?

Not quite, the given numbers are offsets (1/72", like above). The
rectangle given by -g<width>x<height> determines the size of the produced
bitmap image. The bounding box can be extracted e.g. from the
%%BoundingBox comment of the PS file. This is done in pstoimg if the file
is an EPS file.

> Can somebody explain that (or give me a pointer to a detailed description of 
>GhostScript
> specifications)?

Hmm, have a look at the Ghostscript sources package; I believe there is a
Postscript (waht else :-) file describing all the features. Maybe it is
also in the GS_LIB path. Some basics are explained by "gs -h".

> Lasr question: is there a way of telling GS to produce an output ALREADY cropped to 
>non the
> blank rectangle of the image, in the same way as done by dviscr+dvidot?

AFAIK no. The only way to limit the output size of the bitmap is to use
the -sPaperSize=... option or -g<width>x<height>

By the way, why don't you use pstoimg to do the job? Use dvips with the -E
option to generate EPS files that are handled by pstoimg properly.

Regards,

Marek

***********************************************************
* Marek Rouchal         [EMAIL PROTECTED] *
*               http://saftsack.fs.uni-bayreuth.de/~marek *
* Linux, Perl, Latex2HTML enthusiast. PGP key available.  * 
***********************************************************

Reply via email to