Bug 123795 - kpdf 3.5.1 alternates page orientation when printing (180 degree rotation)
Summary: kpdf 3.5.1 alternates page orientation when printing (180 degree rotation)
Status: RESOLVED NOT A BUG
Alias: None
Product: kpdf
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-17 19:12 UTC by Eric Thibodeau
Modified: 2006-05-01 13:46 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Thibodeau 2006-03-17 19:12:02 UTC
Version:           0.5.1 (using KDE 3.5.1, Gentoo)
Compiler:          gcc version 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)
OS:                Linux (i686) release 2.6.15-ck7_KyRoN

kpdf alternates the page orientation when printing. Duplex printing is not set and (long/short duplex printing) and the behaviour is witnessed with ALL/ODD/EVEN page printing. This makes manual duplex printing impossible (can hardly suspect CUPS and kprinter of being misconfigured since all other applications print correctly including acroread which calls printing with lpr...)
Comment 1 Albert Astals Cid 2006-03-17 19:43:15 UTC
errr, i suck at understanding english printing terms, can you please explain it using some numbers and diagrams, what is the problem you get?
Comment 2 Eric Thibodeau 2006-03-17 21:21:32 UTC
hehehe, would you prefer French ;)... Anyways, here is another tentative description:

Page 1 = print Ok (top of page comes out first)
page 2 = print 180 degree rotation (bottom of page comes out first)
Page 3 = print Ok (top of page comes out first)
page 4 = print 180 degree rotation (bottom of page comes out first)
...

And this also happens if I only print odd or even pages.
Comment 3 Albert Astals Cid 2006-03-17 23:29:27 UTC
does this happen also in the print preview?
Comment 4 Eric Thibodeau 2006-03-17 23:39:03 UTC
Actually, worst than that, print preview comes out blank!!
Comment 5 Albert Astals Cid 2006-03-17 23:50:49 UTC
Ouch, can you actually see any PS file on kghostview? Or any print preview in not kpdf? Maybe you have it incorrectly configured and that's why print preview (that uses kghostview) shows empty?

BTW i forgot to ask but i assume that problem happens with all pdf right?
Comment 6 Eric Thibodeau 2006-03-18 06:55:29 UTC
Okay...more info:
1- yes it happens with all PDFs
2- If i do: pdf2ps, kghostview _CAN_ open the file
3- If I "Print to PS" I CAN'T view the resulting ps file with kghostview
.... all in all, there seems to be something wrong with the PS filter kpdf uses (obviously not pdf2ps).

I'm running off Gentoo, so don't hesitate if you need specific version of all libs and compile flags and all (I use conservative flags like -O2 and -fomit-frame-pointer) ;)
Comment 7 Albert Astals Cid 2006-03-18 12:18:02 UTC
Can you please do

ldd `kde-config --prefix`/lib/kde3/libkpdfpart.so

and see if libpoppler is present in the libraries mentioned in the first column?
Comment 8 Eric Thibodeau 2006-03-18 16:44:11 UTC
Sure!

kyron@kyron ~ $ ldd `kde-config --prefix`/lib/kde3/libkpdfpart.so|grep poppl
        libpoppler.so.0 => /usr/lib/libpoppler.so.0 (0xb6967000)

Further more, the poppler version is 0.5.0... and compiling with 0.5.1 jsut doesn work....
Comment 9 Albert Astals Cid 2006-03-18 19:03:29 UTC
Well, then i will have to close this bug. Gentoo people are patching KPDF against my wish to use poppler, that reduces the chance i can fix your bug to 0 because the part of the code that produces the PS output is the part they remove. So go to gentoo bugzilla and tell them to fix your bug.
Comment 10 Eric Thibodeau 2006-03-18 20:16:32 UTC
Really sorry about that, had I known I would have left bugs.kde.org alone!... I definately should have mentionned Gentoo is the distrib I am using. This surprises me since I was happy to use Gentoo since I blindly thought they were always using the source code as closely as possible to the original implementation...and in worst case scenarios, patches were added on a "to be implemented" basis.

Thanks for your time!

Le Samedi 18 Mars 2006 13:03, Albert Astals Cid a écrit :
[bugs.kde.org quoted mail]
Comment 11 Eric Thibodeau 2006-03-18 20:56:09 UTC
Opened Gentoo bug: http://bugs.gentoo.org/show_bug.cgi?id=126705
Comment 12 Yuriy Kozlov 2006-05-01 07:54:28 UTC
This also happens to me on kubuntu, and:

yuriy@yuriku:~/mydocs/source/kaffeine-0.8.1$ ldd `kde-config --prefix`/lib/kde3/libkpdfpart.so|grep poppl
        libpoppler.so.1 => /usr/lib/libpoppler.so.1 (0x00002aaaab634000)

so I need to file a bug for this for ubuntu?
Comment 13 Eric Thibodeau 2006-05-01 13:46:24 UTC
Yuriy,

If you open a bug with Ubuntu, make sure you refer to the link in Comment #11 so that work is not duped. From what I gather, different distributions are modifying kpdf due to excessive (security) bugs in the xpdf libraries.