-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Reinhard Kotucha wrote:
> Try:
> 
>       gs -q -sDEVICE=bbox -dBATCH -dNOPAUSE somefile.ps
> 

This outputs:
[EMAIL PROTECTED] ~ $ gs -q -sDEVICE=bbox -dBATCH -dNOPAUSE print.ps
%%BoundingBox: 35 31 576 767
%%HiResBoundingBox: 35.549999 31.550554 575.027982 766.079977
%%BoundingBox: 36 616 575 767
%%HiResBoundingBox: 36.071999 616.121981 574.973982 766.079977

The ps file isn't rendered anywhere as far as I can tell.

gv print.ps works fine.

> To find out how your previewer calls ghostscript you can try this:
> 
>    * temporarily replace /usr/bin/gs by a little shell script:
>    _________________
>    #!/bin/sh
>    echo $0 "$@"
>    _________________
> 
>    * start the previewer in an xterm so that the output of the script
>      will appear in the terminal. 
> 
> You'll hopefully see with which arguments gs is called by the
> previewer. I don't have KDE installed but the script works with gv.
> 

Here is the output of kghostview:

/usr/bin/gs -dNOPAUSE -dQUIET -dSAFER -dPARANOIDSAFER -dDELAYSAFER
- -sInputFile=/home/rich/print.ps -c << /PermitFileReading [ InputFile ]
/PermitFileWriting [] /PermitFileControl [] >> setuserparams .locksafe -

Here is the print-preview output:

/usr/bin/gs -dNOPAUSE -dQUIET -dSAFER -dPARANOIDSAFER -dDELAYSAFER
- -sInputFile=/tmp/kde-rich/kdeprint_v0evD2L2 -c << /PermitFileReading [
InputFile ] /PermitFileWriting [] /PermitFileControl [] >> setuserparams
.locksafe -

Any ideas what might be wrong from this?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE7Q2wG4/rWKZmVWkRAlb9AJ9DyZYZPtevpAdtaTlzu9AT53EFjQCfYLPH
hGCPmREUhjDV6+6l+M9xjFY=
=PK42
-----END PGP SIGNATURE-----

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to