Bug 133686 - no print preview from kword/kpdf
Summary: no print preview from kword/kpdf
Status: CLOSED WORKSFORME
Alias: None
Product: kdeprint
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-07 08:12 UTC by Jeremy Johnson
Modified: 2008-12-31 20:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Johnson 2006-09-07 08:12:58 UTC
Version:           koffice-3.5.4 (using KDE KDE 3.5.4)
Installed from:    Compiled From Sources
Compiler:          gcc-3.4.6 -march=k8 -O2 -pipe
OS:                Linux

My system: amd64 opteron running x86_64 Gentoo linux 2.6.17-r4. 
gcc-3.4.6 is default compiler.
gcc-4.1.1 installed but I haven't rebuilt
toolchain/system/world using gcc-4.1.1 
glibc-2.4-r3

After losing power during TC Ernesto, I had to restore from an rsnapshot (rsync) backup, but I discovered I had accidentally excluded /var/db from my rsync snapshot. Gentoo's /var/db/pkg folder 
contains info about what versions of software are installed on the system. 

However, I still had /var/lib/portage/world which is just a list of all software on the system. And I still had all the programs/libraries working just as before the storm hit.

So I had to rebuild all the software on the
computer: "emerge system; emerge world" which recompiled all the software (equivalent to "emerge -e sytem; emerge -e world". Since the system is automatically sync'd with portage every day, this also upgraded some world packages, in particular KDE got upgraded from 3.5.? (I lost the version history in /var/db/pkg) to 3.5.4.

The system appears to be working just fine.
Except KDE apps no longer print. I can print
test pages from cups http://localhost:631/printers and from kde print manager. But when I have to print from an application, the printer (Samsung laser ML2552W) warms up and then goes back to "ready" without printing anything.

The documents look fine in kword(.odt). Since kword won't print to printer, I printed to PDF file and then printed the PDF from Windows. (I had customers waiting to sign contracts which KDE refused to print)

Acroread/kpdf/xpdf/gpdf all display
the PDF just fine, but the print preview of
kde print manager shows empty blank pages.
(I've also tried changing default previewer
from Kghostview to gs/gsview from KDE print manager, but that doesn't fix problem)

Since I had other "slots" of kde still on the computer "/usr/kde/{3.3,3.4,3.5}/" I
tried logging in to the 3.4 version of KDE.
Lo and Behold, Printing/Previewing work just fine from KDE3.4 (I haven't tried downgrading KDE-3.5.4 to KDE-3.5.? because of time constraints -- I'm not using split ebuilds yet).

Now here's the strange part: I tested the broken KDE3.5 print preview on some other PDF files I had lying around, and some of them displayed correctly in Print Preview.
The ones which showed only blank pages, wrote the following to the terminal:
"Error: Bad bounding box in Type 3 glyph"
and did not print to the printer. PDFs which
did not have this bounding box error, did
display/preview/print correctly from KDE3.5

However, in KDE3.4, all of these exact same PDF files displayed/previewed/printed correctly and no "Bad bounding box errors" (BBE) were printed to the console. 
The pdf which had the "BBBE" in KDE3.5 
but not in KDE3.4
was created using kword -- just a standard legal contract set in Times New Roman TrueType font.


I need to get this fixed.
I supposed I could mask KDE-3.5.4 and then
downgrade to KDE-3.4.3 if this bug can't be
found.
Comment 1 Jeremy Johnson 2006-09-07 16:00:35 UTC
Update: There were a few packages (because of new "Use flags") 
which got skipped over during the first "emerge world". 
So I re-emerged them last night and Gentoo re-emerged some
~60 packages (including kdelibs) as dependencies. I also decided
to rebuild the "system" files against the current default gcc-3.4.6
using the emerge wrapper script  "emwrap.sh -set"

#genlop -l | tail -n  60
     Wed Sep  6 20:27:38 2006 >>> kde-base/kdelibs-3.5.4-r1
     Wed Sep  6 20:30:08 2006 >>> app-office/kletterwizard-0.9.7
     Wed Sep  6 20:42:30 2006 >>> sci-misc/kboincspy-0.9.1
     Wed Sep  6 20:43:16 2006 >>> app-office/sql-ledger-2.6.9
     Wed Sep  6 20:43:36 2006 >>> media-libs/sdl-image-1.2.3-r1
     Wed Sep  6 20:51:33 2006 >>> dev-util/guile-1.6.7
     Wed Sep  6 20:52:08 2006 >>> gnome-base/libglade-0.17-r6
     Wed Sep  6 20:52:52 2006 >>> gnome-base/oaf-0.6.10
     Wed Sep  6 20:54:01 2006 >>> gnome-base/gconf-1.0.9
     Wed Sep  6 20:54:11 2006 >>> gnome-base/gnome-common-1.2.4-r4
     Wed Sep  6 20:58:08 2006 >>> gnome-base/gnome-vfs-1.0.5-r4
     Wed Sep  6 20:58:24 2006 >>> dev-libs/libunicode-0.4-r1
     Wed Sep  6 21:02:26 2006 >>> gnome-extra/gal-0.24
     Wed Sep  6 21:07:02 2006 >>> gnome-base/bonobo-1.0.22
     Wed Sep  6 21:11:25 2006 >>> gnome-extra/guppi-0.40.3-r2
     Wed Sep  6 21:11:55 2006 >>> app-misc/ktoblzcheck-1.7
     Wed Sep  6 21:13:35 2006 >>> sys-libs/gwenhywfar-1.18.0
     Wed Sep  6 21:14:32 2006 >>> dev-libs/libofx-0.8.0-r1
     Wed Sep  6 21:23:28 2006 >>> gnome-extra/gtkhtml-1.1.10-r1
     Wed Sep  6 21:23:32 2006 >>> dev-libs/slib-2.4.6
     Wed Sep  6 21:23:59 2006 >>> dev-libs/g-wrap-1.3.4-r1
     Wed Sep  6 21:24:04 2006 >>> dev-perl/HTML-Element-Extended-1.17
     Wed Sep  6 21:24:09 2006 >>> dev-perl/HTML-TableExtract-2.09
     Wed Sep  6 21:24:15 2006 >>> dev-perl/Finance-Quote-1.11
     Wed Sep  6 21:36:35 2006 >>> app-office/gnucash-1.8.11
     Wed Sep  6 21:37:47 2006 >>> app-antivirus/clamav-0.88.4
     Wed Sep  6 21:38:11 2006 >>> sci-calculators/galculator-1.2.5.2
     Wed Sep  6 21:38:59 2006 >>> rox-base/rox-2.2.0
     Wed Sep  6 21:39:33 2006 >>> dev-tex/latex2html-2002.2.1_pre20041025
     Wed Sep  6 21:39:46 2006 >>> dev-tex/chktex-1.6.2
     Wed Sep  6 21:42:26 2006 >>> app-text/openjade-1.3.2-r1
     Wed Sep  6 21:42:32 2006 >>> app-text/docbook-dsssl-stylesheets-1.79
     Wed Sep  6 21:42:36 2006 >>> app-text/docbook-sgml-dtd-3.1-r3
     Wed Sep  6 21:42:43 2006 >>> app-text/sgmltools-lite-3.0.3-r10
     Wed Sep  6 21:43:22 2006 >>> app-text/aiksaurus-1.2.1
     Wed Sep  6 21:43:31 2006 >>> app-text/noweb-2.9-r5
     Wed Sep  6 22:11:58 2006 >>> app-office/lyx-1.4.1-r1
     Wed Sep  6 22:19:52 2006 >>> mail-mta/postfix-2.2.10
     Wed Sep  6 22:19:56 2006 >>> app-office/ooextras-20050216
     Wed Sep  6 22:36:42 2006 >>> app-office/scribus-1.2.4.1
     Wed Sep  6 22:39:19 2006 >>> app-office/texmaker-1.11-r1
     Wed Sep  6 22:43:36 2006 >>> sys-apps/portage-2.1.1_rc1-r5
     Wed Sep  6 22:46:10 2006 >>> app-xemacs/texinfo-1.23
     Wed Sep  6 22:46:23 2006 >>> app-emacs/auctex-11.55
     Wed Sep  6 22:46:27 2006 >>> app-xemacs/auctex-1.33
     Wed Sep  6 22:46:33 2006 >>> app-text/docbook-xml-dtd-4.4-r1
     Wed Sep  6 22:49:21 2006 >>> app-backup/dar-2.2.6
     Wed Sep  6 22:52:52 2006 >>> app-backup/kdar-2.0.7
     Wed Sep  6 22:56:59 2006 >>> media-libs/sdl-mixer-1.2.6-r1
     Wed Sep  6 22:58:17 2006 >>> games-arcade/supertux-0.1.3
     Wed Sep  6 23:41:20 2006 >>> sys-kernel/linux-headers-2.6.11-r2
     Thu Sep  7 00:22:17 2006 >>> sys-libs/glibc-2.4-r3
     Thu Sep  7 00:22:43 2006 >>> app-admin/eselect-1.0.2
     Thu Sep  7 00:22:48 2006 >>> sys-devel/binutils-config-1.8-r7
     Thu Sep  7 00:26:24 2006 >>> sys-devel/binutils-2.16.1-r3
     Thu Sep  7 01:41:33 2006 >>> sys-devel/gcc-4.1.1
     Thu Sep  7 02:13:10 2006 >>> sys-libs/glibc-2.4-r3
     Thu Sep  7 02:15:37 2006 >>> sys-devel/binutils-2.16.1-r3
     Thu Sep  7 03:27:18 2006 >>> sys-devel/gcc-4.1.1


This morning, I can print from KDE-3.5.4 kword. Hallalujeh!
But if I print to a PDF File, the PDF File still previews as blank pages
in kpdf/kprinter and does not print even though kpdf displays both the
thumbnails and the main pages correctly. There is still the "Bad bounding
box error Type 3 glyph" message.
Comment 2 Philip Rodrigues 2006-09-08 15:34:26 UTC
I don't understand all the gentooisms in this report, but are you sure this is a bug, rather than a configuration problem caused by the fact that your system was restored from backup?
Comment 3 Jeremy Johnson 2006-09-08 18:17:23 UTC
I was using rsnapshot to make rsync backups to another partition every 4hrs.
I configured rsnapshot to exclude /proc /tmp /dev /sys and inadvertently /var/db
(gentoo's package database). The /var partition got corrupted so I had to restore
from an rsnapshot, but I lost Gentoo's package database info, so I rebuilt the
system from scratch by recompiling all the software (listed in Gentoo's /var/lib/portage/world file, which I did not lose)

To check out your idea about misconfiguration, I have tried to print preview a pdf
in kpdf on another up-to-date x86 (instead of amd64) Gentoo computer with KDE-3.5.4 installed. Same problem with blank pages being displayed in print preview. Same
"Bad bounding box error in Type 3 glyph" written to console stderr. But thumbnails and pages are correctly displayed from kpdf itself, just not the print preview. If I open a pdf which does not have a "Bad bounding box error in Type 3 glyph" then kpdf's print preview displays and prints just fine on this as well as the amd64 computer (running x86_64 linux)

On this x86 computer I have ghostscript-esp-8.15.1_p20060430 installed (I needed this ghostscript-esp to make my own .djvu files with djvumake)
On the amd64 computer I have ghostscript-gpl-8.54 installed instead 
(I wanted to see if the choice of ghostscript made a difference)

It therefore appears that KDE-3.4 could print-preview pdfs with "Bad bounding box
in Type 3 glyph errors" but KDE-3.5.4 cannot. Why kword should create postscript with "bad bounding for type 3 glyph" is another matter.
Comment 4 gmud 2006-10-10 11:28:11 UTC
I have some problems creating pdfs with kde too, I don't know if this has something to do with it, but I get the same errors "Error: Bad bounding box in Type 3 glyph". I already opened a bug here https://bugzilla.novell.com/show_bug.cgi?id=211235 .

Jeremy, does the pdf look okay or are you having font issues with it ("jumping letters", ugly looking)?
Comment 5 Jeremy Johnson 2006-10-10 17:31:52 UTC
At one time I was having problems with fonts in X.
I improved the fonts, but I still think there may be problems:
http://forums.gentoo.org/viewtopic-t-492228-highlight-.html


I have two secretaries, both logged into the same application server, running
identical software. Yet one always seems to have more problems with ugly
fonts. The other day she was printing something from kword with a title
in a script font. It displayed perfectly in kword, yet substituted an entirely different font upon printing. The solution was to "embed the font" in the
ps/pdf. Another time she was having problems printing where serif fonts
were changed to non-serif fonts and monospacing. I "solved" the problem
by selecting all the text in the document and changing the encoding from
en_US to en_American. Weird. She was re-using a kword document. Maybe
some setting in kword had changed from a previous version of kde? Or maybe
something had changed when I upgraded to gcc-4.1.1 and glibc-2.4-r3. But
I really haven't investigated further.

I did do a complete reverse dependency rebuild "revdep-rebuild world"
which fixed a problem with libcup.so and whereby kprinter would duplex
documents which should not have been duplexed. But I still have the problem
with kword documents previewing as blank pages with kghostview.

I've not had any problems with latex. Unfortunately, the secretaries
balk at learning it, although I have managed to get them to use a 
fax cover sheet written in lyx.
Comment 6 Kurt Pfeifle 2007-01-12 16:49:27 UTC
Jeremy,

I cannot confirm this on 3 different systems, they all work for me:

  GoboLinux 013 w. KDE 3.5.3 (Live CD)
  openSUSE 10.0 w. KDE 3.5.5
  Knoppix 5.1.0 w. KDE 3.5.5 (Live CD)

This is likely a (configuration/compile) bug in your (local) Gentoo system.

Cheers,
Kurt
Comment 7 John Layt 2008-12-31 20:17:30 UTC
Closing old Resolved status bug.