[l2h] pstoimg on cygwin?

Shigeharu TAKENO shige at iee.niit.ac.jp
Wed Mar 28 03:09:36 CEST 2007


shige 03/28 2007
----------------

Alle Meije Wink <alle_meije at yahoo.co.uk>:

| No, thanks, but that doesn't work. The problem is that pstoimg adds 
| *extra* pages that shouldn't be there, instead of having to few pages. 
| As Igor says, an .eps has its own bounding box, which is not a page 
| size. pstoimg turns this into an eps on a -A4- page.
| 
| I removed the line that puts in the "gs showpage". Now .eps files are 
| processed correctly.
| 
| Maybe latex2html does have problems now, I don't know that (I only use 
| pstoimg not latex2html)
| 
| best
| Alle Meije
| 
| Shigeharu TAKENO wrote:
| > shige 03/26 2007
| > ----------------
| > 
| > I wrote:
| > 
| >> Perhaps you may avoid the error by using options '-antialias' or 
| >> '-antialias -depth 1' for pstoimg.
| > 
| > or, try to use '-multipage' option.

Pstoimg with the option '-multipage' makes 2 images for your eps 
file, the first one is a graph image and another one is a blank
image.

Seeing your eps file on gv, we see the graph page and the blank
page. So, it is no only the problem of pstoimg, but also of the 
eps file. 

'-debug' output is the followings:

% ./pstoimg -debug -multipage IAN_PER3rawrotation.eps 
pstoimg V2002-2-1 (Revision 1.19, Perl 5.008008)
pstoimg: Temporary directory is /tmp
pstoimg: Processing IAN_PER3rawrotation.eps
pstoimg: EPSF dimensions are 792x277
pstoimg: Running /usr/local/bin/gs  -sDEVICE=pnmraw -g792x277 \
   -sOutputFile=/tmp/%d_p10652.pnm 
GS>-50 -50 translate
GS>(IAN_PER3rawrotation.eps) run
GS>showpage
GS>quit

GNU Ghostscript 7.07 (2003-05-17)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>GS>Loading StandardSymL font from /usr/local/share/ghostscript/\
  fonts/s050000l.pfb... 1980440 623134 1743104 439014 1 done.
Loading NimbusSanL-Regu font from /usr/local/share/ghostscript/\
  fonts/n019003l.pfb... 2020632 669173 1743104 449123 1 done.
>>showpage, press <return> to continue<<
GS>>>showpage, press <return> to continue<<
GS>Image "/tmp/1_p10652.pnm" is PPM, 792x277
Running "/usr/local/bin/netpbm/ppmquant 256 < /tmp/1_p10652.pnm \
  | /usr/local/bin/netpbm/pnmtopng  > IAN_PER3rawrotation1.png"
pnmcolormap: making histogram...
pnmcolormap: Scanning image 0
pnmcolormap: 7 colors so far
pnmcolormap: 7 colors found
pnmcolormap: Image already has few enough colors (<=256).  \
  Keeping same colors.
pnmremap: 7 colors found in colormap
pnmtopng: 7 colors found
pstoimg: Written IAN_PER3rawrotation1.png
Image "/tmp/2_p10652.pnm" is PBM, 792x277
Running "/usr/local/bin/netpbm/pnmtopng < /tmp/2_p10652.pnm  \
  > IAN_PER3rawrotation2.png"
pstoimg: Written IAN_PER3rawrotation2.png

+========================================================+
 Shigeharu TAKENO     NIigata Institute of Technology
                       kashiwazaki,Niigata 945-1195 JAPAN
 shige at iee.niit.ac.jp   TEL(&FAX): +81-257-22-8161
+========================================================+


More information about the latex2html mailing list