Gentoo Archives: gentoo-amd64

From: Richard Freeman <rich@××××××××××××××.net>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] KDE Print-Preview / PDF/PS Konqueror Problems
Date: Thu, 24 Aug 2006 02:27:08
Message-Id: 44ED0DB0.8010203@thefreemanclan.net
In Reply to: Re: [gentoo-amd64] KDE Print-Preview / PDF/PS Konqueror Problems by Reinhard Kotucha
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Reinhard Kotucha wrote:
5 > Try:
6 >
7 > gs -q -sDEVICE=bbox -dBATCH -dNOPAUSE somefile.ps
8 >
9
10 This outputs:
11 rich@rich64 ~ $ gs -q -sDEVICE=bbox -dBATCH -dNOPAUSE print.ps
12 %%BoundingBox: 35 31 576 767
13 %%HiResBoundingBox: 35.549999 31.550554 575.027982 766.079977
14 %%BoundingBox: 36 616 575 767
15 %%HiResBoundingBox: 36.071999 616.121981 574.973982 766.079977
16
17 The ps file isn't rendered anywhere as far as I can tell.
18
19 gv print.ps works fine.
20
21 > To find out how your previewer calls ghostscript you can try this:
22 >
23 > * temporarily replace /usr/bin/gs by a little shell script:
24 > _________________
25 > #!/bin/sh
26 > echo $0 "$@"
27 > _________________
28 >
29 > * start the previewer in an xterm so that the output of the script
30 > will appear in the terminal.
31 >
32 > You'll hopefully see with which arguments gs is called by the
33 > previewer. I don't have KDE installed but the script works with gv.
34 >
35
36 Here is the output of kghostview:
37
38 /usr/bin/gs -dNOPAUSE -dQUIET -dSAFER -dPARANOIDSAFER -dDELAYSAFER
39 - -sInputFile=/home/rich/print.ps -c << /PermitFileReading [ InputFile ]
40 /PermitFileWriting [] /PermitFileControl [] >> setuserparams .locksafe -
41
42 Here is the print-preview output:
43
44 /usr/bin/gs -dNOPAUSE -dQUIET -dSAFER -dPARANOIDSAFER -dDELAYSAFER
45 - -sInputFile=/tmp/kde-rich/kdeprint_v0evD2L2 -c << /PermitFileReading [
46 InputFile ] /PermitFileWriting [] /PermitFileControl [] >> setuserparams
47 .locksafe -
48
49 Any ideas what might be wrong from this?
50 -----BEGIN PGP SIGNATURE-----
51 Version: GnuPG v1.4.5 (GNU/Linux)
52 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
53
54 iD8DBQFE7Q2wG4/rWKZmVWkRAlb9AJ9DyZYZPtevpAdtaTlzu9AT53EFjQCfYLPH
55 hGCPmREUhjDV6+6l+M9xjFY=
56 =PK42
57 -----END PGP SIGNATURE-----

Attachments

File name MIME type
smime.p7s application/x-pkcs7-signature