bbox problems ... 
Author Message
 bbox problems ...

my bbbox is setted in the right way.

is possible to print on a file only the image ?

when i execute gs it prints the file but is a big file with a little image in it

my bbox in the file is:

    5 %%BoundingBox: 0 0 243 158M
    6 %%FHPathName:Z:\SENZA NOME-2M
    7 %ALDOriginalFile:Z:\SENZA NOME-2M
    8 %ALDBoundingBox: -18005 -18029 14251 14227M
and with this command

gs -dNOPAUSE -dBATCH -sDEVICE=bbox immagini/eps/conshealt0.eps -c showpage quit

gs give me

%%BoundingBox: 0 0 242 157
%%HiResBoundingBox: 0.324000 0.306000 241.541993 156.491995



Sat, 28 Feb 2004 17:21:36 GMT  
 bbox problems ...

Quote:

> my bbbox is setted in the right way.

> is possible to print on a file only the image ?

> when i execute gs it prints the file but is a big file with a little image in it

> my bbox in the file is:

>     5 %%BoundingBox: 0 0 243 158M
>     6 %%FHPathName:Z:\SENZA NOME-2M
>     7 %ALDOriginalFile:Z:\SENZA NOME-2M
>     8 %ALDBoundingBox: -18005 -18029 14251 14227M
> and with this command

> gs -dNOPAUSE -dBATCH -sDEVICE=bbox immagini/eps/conshealt0.eps -c showpage quit

> gs give me

> %%BoundingBox: 0 0 242 157
> %%HiResBoundingBox: 0.324000 0.306000 241.541993 156.491995

Use this.

%!PS
EpsFilename (r) file
{
 dup
 1024 string readline not
 {exit}if
 (%%BoundingBox: ) anchorsearch
 {
  pop
  token pop /Xa exch def
  token pop /Ya exch def
  token pop /Xb exch def
  token pop /Yb exch def
  pop
  closefile
  << /PageSize [Xb Yb] >> setpagedevice
  << /Orientation 1 >> setpagedevice
  EpsFilename run
  showpage
  exit
 }
 {pop}ifelse

Quote:
}loop

save this under eps2img.ps and launch gs like that:
gs -sDEVICE=<YourDevice> -sEpsFilename=</PATH/YourFilename.eps> eps2img.ps
with others options if you need.
--
Karl Pradene  --  DPCi S.A.                     http://web.dpci.fr
Free Software Fondation                         http://www.fsf.org

"Etre libre, ce n'est pas seulement se dbarrasser de ses cha?nes;
  c'est vivre d'une fa?on qui respecte et renforce la libert des autres."
Nelson Mandela, Un long chemin vers la libert.



Wed, 24 Mar 2004 20:54:04 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problems with bbox device crashing

2. bizarre bbox behaviour

3. output bbox only?

4. BBox in Ghostview

5. bbox (Bounding Box)

6. Calculating 'cumulative' bbox in ghostscript

7. pdf2ps font / bbox troubles

8. bbox and letter?

9. BBox

10. !!Immediate Need - Page BBox anchor point help

11. Q: eps->tiff but having tiff file cropped to BBox dim

12. Q: How to render only the bbox in Ghostscript?

 

 
Powered by phpBB® Forum Software