Bug 134898 - kghostview garbles certain ps files
Summary: kghostview garbles certain ps files
Status: RESOLVED WORKSFORME
Alias: None
Product: kghostview
Classification: Applications
Component: general (show other bugs)
Version: 0.20
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Luís Pedro Coelho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-30 13:27 UTC by Raphael
Modified: 2007-02-04 20:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Sample postscript file that kghostview garbles when included in a one page latex doc. Views fine on its own. (14.50 KB, application/octet-stream)
2006-09-30 13:28 UTC, Raphael
Details
Sample one page postscript doc including postscript pic above. This is the one that causes the problem. (42.49 KB, application/octet-stream)
2006-09-30 13:35 UTC, Raphael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael 2006-09-30 13:27:47 UTC
Version:           0.20 (using KDE KDE 3.5.4)
Installed from:    Gentoo Packages
Compiler:          gcc (GCC) 3.4.4   (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)
OS:                Linux

If I make a simple postscript file I can view it in gv and kghostview just
fine. However, if I make a one page latex file such as

\documentclass[a4paper,10pt]{article}
\usepackage{graphicx}

%opening
\title{}
\author{}

\begin{document}

\maketitle

\begin{abstract}

\end{abstract}

\section{}

\centerline{\includegraphics[scale=0.35,angle=270]{radix-runtime}}

\end{document}


then latex and dvips it it views fine in gv but is garbled in kghostview. A
screenshot is at http://img142.imageshack.us/img142/7259/kileen9.png.  I asked on irc and  people were able to
reproduce the problem.

It seems it is definitely a problem with kghostview. ps to pdf and then later
viewed in kpdf works fine.

kghostview --version
Qt: 3.3.4
KDE: 3.5.4
KGhostView: 0.20


Raphael
Comment 1 Raphael 2006-09-30 13:28:48 UTC
Created attachment 17969 [details]
Sample postscript file that kghostview garbles when included in a one page latex doc. Views fine on its own.
Comment 2 Raphael 2006-09-30 13:35:09 UTC
Created attachment 17970 [details]
Sample one page postscript doc including postscript pic above. This is the one that causes the problem.

This is a one page doc made in the above method using the above postscript file
in it. It views ok in gv but is garbled in kghostview.
Comment 3 Philip Rodrigues 2006-09-30 23:42:41 UTC
Looks fine here (post-3.5.4 SVN on FreeBSD)
Comment 4 Raphael 2006-09-30 23:59:40 UTC
I didn't really label the attachments well. The first attachment always looks fine as is simply the postcript pic that is included in the second attachment. The second attachment however is garbled in kghostview for gentoo users it seems.

Raphael
Comment 5 Raphael 2006-10-01 00:29:07 UTC
I have found the cause.  If you unclick "use platform fonts" in kghostview the problem goes away.

Raphael
Comment 6 Raphael 2006-10-01 00:35:25 UTC
Specifically...

gs -sDEVICE=x11 -dTextAlphaBits=4 -dGraphicsAlphaBits=2 -dMaxBitmap=10000000 attachment.cgi

garbles

gs -dNOPLATFONTS -sDEVICE=x11 -dTextAlphaBits=4 -dGraphicsAlphaBits=2 -dMaxBitmap=10000000 attachment.cgi

doesn't

Raphael
Comment 7 Kurt Pfeifle 2007-02-04 20:50:50 UTC
I don't see any problem with this file on my system's kghostview. 

(Nor do I see the problem with your "problematic" commandline. However, I didn't understand what this commandline should be proofing? Other than  

  (a) either your "gs" may be buggy as well, or
  (b) your PostScript file may be buggy,

if gs can't display the PostScript file?)

Please if you report kghostview bugs, do always include the version of your Ghostscript installation as well, and report the results of viewing the file in other viewers:

 (a) gs   (as you did)
 (b) gv   (as you did)
 (c) kpdf

[Yes, kpdf can be used as a viewer for PS files, because it does on-the-fly conversion using Ghostscript's "ps2pdf" utility...]