Bug 292680

Summary: trim margin does not work on right pages
Product: [Applications] okular Reporter: Helge Hielscher <hhielscher>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fabiodurso, j.nespolo, ph
Priority: NOR    
Version: 0.14.0   
Target Milestone: ---   
Platform: Mageia RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot

Description Helge Hielscher 2012-01-28 11:40:32 UTC
Created attachment 68266 [details]
Screenshot

Version:           0.14.0 (using KDE 4.8.0) 
OS:                Linux

Sometimes trim margin does not work on right pages. Often this happens with Tex Documents.

Reproducible: Always

Steps to Reproduce:
1. open a tex document, e.g. http.//tex.loria.fr/general/mil.pdf
2. enable trim margins


Actual Results:  
trim margin works on left pages, but not on right pages
see page 7 and 8 in example document linked above

Expected Results:  
trim margin works on all pages
Comment 1 Philipp Hartwig 2012-06-20 10:23:53 UTC
I've just updated to 0.14.3 from 0.13.5 and I also observe this now. Note that I need to set the view mode to "Facing Pages" to reproduce this. The whitespace is always only trimmed on one of the two pages. This problem did not exist with the old version, so it was probably caused by the changes to the Facing Pages view in 0.14.
Comment 2 Japs 2012-06-27 11:23:57 UTC
I can confirm the bug in 0.14.3 under KDE 4.8.4, Debian Sid. As Philipp noted, this used to work fine in the previous version. 
I'd like to point out that not all right pages are not trimmed. In my case pages that get skipped seem to be almost random, with both even and odd pages affected. For example, in the gnuplot manual, the following pages are not trimmed:
31, 37, 39, 54, 68,70, 71.
Furthermore, the trimming is uneven: the left margin is wider than the right one and top margin wider than the bottom one.
Comment 3 Philipp Hartwig 2012-07-08 10:18:51 UTC
I take back what I said, it is not necessary to set the view mode to "Facing Pages". Also in "Single Page" mode only every second page is correctly trimmed. 

The following is weird: Say pages 1 and 3 are trimmed correctly, while page 2 is not trimmed. If I reload the document on page 2 (by hitting F5), it is afterwards trimmed, but pages 1 and 3 will not be trimmed anymore.

I'd be willing to git-bisect this, as trimming whitespace is the most important feature in Okular for me. But when I compile an older version of Okular, I only get
Okular::DocumentPrivate::loadGeneratorLibrary: Invalid plugin factory for "okularGenerator_poppler"
when trying to open a pdf file, so that I can't test it.
Comment 4 Fabio D'Urso 2012-07-17 19:12:14 UTC

*** This bug has been marked as a duplicate of bug 257370 ***