Bug 219488

Summary: Pages from DVI files seem to get cropped
Product: [Applications] okular Reporter: Michael Meier <mick22>
Component: DVI backendAssignee: Okular developers <okular-devel>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot visualising the bug

Description Michael Meier 2009-12-20 23:42:24 UTC
Version:           4.4 beta2 (using Devel)
Compiler:          gcc 4.4.1 
OS:                Linux
Installed from:    Compiled sources

Recent versions of okular exhibit the following bug: if "fit width" mode is off when rendering DVI files, the pages seem to get cropped. Hard to explain, but the screenshot explains it.

The effect can be even stronger than in the attached screenshot with some pages rendered at 50% or less of the width than the previous page, giving a very odd-looking result. 

It might have something to do with the width of the actual text on each page. As you can see on the screenshot, the actual width of the page rendered on the right size is proportional to the width of the yellow box for each thumbnail.

I am using Gentoo with KDE compiled from SVN, most recent version is from today (close to 4.4 beta2). Qt version is 4.6.0.

Does not occur after converting the document to PDF.

The DVI file used for the screenshot has been taken from http://ctan.binkerton.com/ctan.php?filename=language/german/gerdoc.dvi but the bug also occurs with my own DVI files.
Comment 1 Michael Meier 2009-12-20 23:43:05 UTC
Created attachment 39200 [details]
Screenshot visualising the bug
Comment 2 Albert Astals Cid 2009-12-21 01:15:17 UTC
Works for me, can anyone else reproduce?
Comment 3 Luigi Toscano 2009-12-21 01:25:13 UTC
I can see the same effect if I enable "View" -> "Trim Margins". Can you please check the status of that option?
Comment 4 Michael Meier 2009-12-21 01:41:30 UTC
Thanks, so it's not a bug but a feature! Disabling "trim margins" does the trick.