Hi Christophe,<br>
 When using gl2ps, with the following options on the command line:<br>
<br>
state=gl2psBeginPage(filename,"toto",viewport,GL2PS_EPS,GL2PS_BSP_SORT,GL2PS_USE_CURRENT_VIEWPORT|GL2PS_LANDSCAPE
|GL2PS_SIMPLE_LINE_OFFSET |GL2PS_BEST_ROOT |GL2PS_TIGHT_BOUNDING_BOX,
GL_RGBA,0,NULL,0,0,0,buffesize,fp,filename);<br>
<br>
Then I got wrong bounding boxes in the  EPS file.<br>
I changed it manualy inside the EPS file.<br>
Taking an original (wrong BBx) EPS file:<br>
%%BoundingBox: 466 268 815 667<br>
<br>
and changed to<br>
%%BoundingBox: 0 268 (815-466) 667   (466->0 815 -> 815-466)<br>
 lead to<br>
%%BoundingBox: 0 268 349 667<br>
which is the correct bounding bbox (I got good reuslts using ghostview, including eps files in latex etc.)<br>
<br>
So I Propose the following modification in the gl2ps.c source file:<br>
<br>
  gl2psPrintf("%%%%BoundingBox: %d %d %d %d\n"<br>
              "%%%%EndComments\n",<br>
             
(gl2ps->options & GL2PS_LANDSCAPE)
?         
0                                     
: (int)gl2ps->viewport[0],<br>
             
(gl2ps->options & GL2PS_LANDSCAPE) ?
(int)gl2ps->viewport[0]                        
: (int)gl2ps->viewport[1],<br>
             
(gl2ps->options & GL2PS_LANDSCAPE) ?
(int)gl2ps->viewport[3]-(int)gl2ps->viewport[1] : 
(int)gl2ps->viewport[2], <br>
          (gl2ps->options
& GL2PS_LANDSCAPE) ?
(int)gl2ps->viewport[2]                        
: (int)gl2ps->viewport[3]);<br>
<br>
<br>
cheers,<br>
Antoine<br>
<br>