kdiff3 empty printout to PDF

Bug #596476 reported by paolog
30
This bug affects 7 people
Affects Status Importance Assigned to Milestone
kdiff3 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: kdiff3

cat > a
kdiff3 does not print differences to PDF
^D
cat > b
kdiff3 does not seem to print differences to PDF
^D
kdiff3 a b

print to PDF, empty resulting PDF is attached

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: kdiff3 0.9.95-4ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic-pae 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic-pae i686
Architecture: i386
Date: Sun Jun 20 10:55:51 2010
EcryptfsInUse: Yes
InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427)
ProcEnviron:
 LANGUAGE=
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
SourcePackage: kdiff3

Revision history for this message
paolog (paolo-greppi) wrote :
Revision history for this message
Joel Hegberg (joelhegberg) wrote :

Also prints blank pages in 11.04.

Revision history for this message
Joel Hegberg (joelhegberg) wrote :

Not only prints blank pages in PDF, but also in PS format as well.

Revision history for this message
piccobello (piccobello) wrote :

Can confirm both ps and pdf are empty in Kubuntu 11.04

Revision history for this message
piccobello (piccobello) wrote :

Bug confirmed in KDE 4.6.5 (Natty, KDIff3: 0.9.95-7build2)

Revision history for this message
lunomad (damon-metapaso) wrote :

I have the same issue, natty, x64, kdiff3: 0.9.95-7build3

seems same as https://bugzilla.redhat.com/show_bug.cgi?id=617226

any ideas?

Revision history for this message
joachimeibl (joachim-eibl) wrote : Re: [Bug 596476] Re: kdiff3 empty printout to PDF

This used to work with Opensuse 11.4 (KDE4.6), but now with 12.1 (KDE 4.7.2)
it doesn't.
Now I can at least confirm the problem.
Joachim

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kdiff3 (Ubuntu):
status: New → Confirmed
Revision history for this message
Venkat Chandra (venkatcc) wrote :

In case anyone is interested, I was able to workaround this problem. I had to build kdiff3 from source after making a small change. YMMV, since I have not done extensive testing, nor have I done any checks to see what sort of side-effects my code change may have. Here's what I did:

1. Download kdiff3 source tarball. (kdiff3-0.9.97.tar.gz)
2. tar xvzf kdiff3-0.9.97.tar.gz
3. cd kdiff3-0.9.97/src-QT4
4. Open file kdiff3.cpp
5. Change line number 869 from:
    #ifdef KREPLACEMENTS_H
    to:
    #ifndef KREPLACEMENTS_H
6. Follow the directions in the README file under the kdiff3-0.9.97 directory (the section under "Requirements & Installation") to build kdiff3.
7. The newly built kdiff3 will print to pdf as one would expect.

Let me know if you are able to get this to work.

Revision history for this message
Venkat Chandra (venkatcc) wrote :

I see that Joachim is on the "notify" list - so he is likely to look at the workaround posted and perhaps will comment. :-)

Revision history for this message
Philipp Ochsendorf (m8mble) wrote :

I had the same issue on OpenSuse 12.3 (KDE 4.10.2 R1) with kdiff3-0.9.97. The solution provided by Venkat Chandra solved the issue. Printing to pdf and paper is now possible as intended.

Revision history for this message
Jeff Tackett (alfredthedragon) wrote :

I know this is an old thread but can confirm that 3 years later, this problem still exists in Ubuntu 14.04 with kdiff3-0.9.98. I had to make the same workaround that was mentioned by Venkat and the issue went away. Please consider applying this solution in the release.

In version 0.9.98 the #ifdef is now on line 883.

Revision history for this message
Jeff Tackett (alfredthedragon) wrote :

I should also point out that this is still a problem in Ubuntu 16.04. (i.e. requires a rebuild of the source as described). I also discovered just today that without the fix above, you cannot print the diff to a physical printer as well (probably related to the postscript variation of the bug).

Revision history for this message
Marco Righi (marco-righi) wrote :

The bug persists

Revision history for this message
Marcel Partap (empee584) wrote :

Sadly, the workaround from #9 did not work for me.
Unfortunate that kdiff3 seems to be nearly abandoned, only two commits in the last two years.
I always wanted to see kpart support of some kind (for comparing images f.e.) but that seems not likely if even bugs like this are not fixed. :´ |

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.