Gentoo Archives: gentoo-amd64

From: Reinhard Kotucha <reinhard.kotucha@×××.de>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] KDE Print-Preview / PDF/PS Konqueror Problems
Date: Wed, 23 Aug 2006 20:03:49
Message-Id: 17644.46058.788621.839089@zarniwoop.ms25.local
In Reply to: [gentoo-amd64] KDE Print-Preview / PDF/PS Konqueror Problems by Richard Freeman
1 >>>>> "Richard" == Richard Freeman <rich@××××××××××××××.net> writes:
2
3 > For quite a while I've been frustrated with what I assume is some
4 > kind of kioslaves problem. Print-preview does not work - I just
5 > get a ghostscript output window and a few lines of what seems like
6 > meaningless detail:
7
8 > %%BoundingBox: 35 31 576 767
9 > %%HiResBoundingBox: 35.549999 31.550554 575.027982 766.079977
10
11 This is not meaningless, but it seems that your previewer calls gs
12 with wrong arguments.
13
14 Try:
15
16 gs -q -sDEVICE=bbox -dBATCH -dNOPAUSE somefile.ps
17
18 The bbox device calculates the bounding box of the content of the
19 page and for some reason nobody knows sends it output to STDERR.
20 It is supposed to be used by programs which convert ps to eps.
21
22 Previewers should use -sDEVICE=x11 or -sDEVICE=x11alpha instead.
23 The latter performs antialiasing.
24
25 To find out how your previewer calls ghostscript you can try this:
26
27 * temporarily replace /usr/bin/gs by a little shell script:
28 _________________
29 #!/bin/sh
30 echo $0 "$@"
31 _________________
32
33 * start the previewer in an xterm so that the output of the script
34 will appear in the terminal.
35
36 You'll hopefully see with which arguments gs is called by the
37 previewer. I don't have KDE installed but the script works with gv.
38
39 BTW, gv allows you to configure this in the resources, see
40 /usr/share/X11/app-defaults/ . I suppose that the KDE previewer works
41 similar as gv, so gv's texinfo manual provides some information about
42 the arguments. Try:
43
44 info gv
45
46 On the other hand, if they want to port KDE to Windows, I suppose that
47 they don't put their config files into X11 directories but I'm sure
48 you know that much better than me.
49
50 > Printing itself works fine.
51
52 Yes, the printing system is a different thing and has it's own config
53 files.
54
55 > Likewise, I cannot view ps/pdf files in knoqueror, but pdf files
56 > work just fine with kpdf (same sorts of pop-up messages).
57 > kghostview doesn't work (generates messages like the above).
58 > Re-emerging kghostview doesn't seem to help.
59
60 kpdf is derived from xpdf and doesn't use ghostscript. Newer versions
61 might be based on poppler, but this doesn't matter in this context.
62
63 It seems that kghostview and konqueror share some code and/or probably
64 config files. This makes a lot of sense.
65
66 Regards,
67 Reinhard
68
69 --
70 ----------------------------------------------------------------------------
71 Reinhard Kotucha Phone: +49-511-4592165
72 Marschnerstr. 25
73 D-30167 Hannover mailto:reinhard.kotucha@×××.de
74 ----------------------------------------------------------------------------
75 Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
76 ----------------------------------------------------------------------------
77
78
79 --
80 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] KDE Print-Preview / PDF/PS Konqueror Problems Richard Freeman <rich@××××××××××××××.net>