[Okular-devel] [okular] [Bug 339347] New: Rendering of files is in landscape and the page is stretched

Thomas thomas.pfau at uni.lu
Wed Sep 24 05:14:02 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=339347

            Bug ID: 339347
           Summary: Rendering of files is in landscape and the page is
                    stretched
           Product: okular
           Version: 0.19.3
          Platform: Ubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: okular-devel at kde.org
          Reporter: thomas.pfau at uni.lu

When opening a pdf file the file is displayed in a stretched way (i.e. it
should be portrait, but is displayed in landscape. This happens with all pdf
files I open.
The problem started recently, when I installed a second monitor to my setup. 



Reproducible: Always

Steps to Reproduce:
1. Open any pdf document 

Actual Results:  
stretched pdf (looks like the portrait pdf is displayed in landscape and
landscape pdfs are stretched to doubled width).



The setup in general is as follows:
A Dell E5440 conected to a docking station with 2 Monitor outs. 
The Monitors are connected to the display ports. Interestingly the system does
not detect 2 monitors but only one screen with double the size of the old one.
xdpyinfo correctly tells the setups physical size and width, even though it
does not show this as two monitors but only as one:
screen #0:
  dimensions:    3840x1080 pixels (1016x286 millimeters)
  resolution:    96x96 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32
  root window id:    0xbe
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x42
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store WHEN MAPPED, save-unders NO
  largest cursor:    64x64

However kscreen and xrandr yield wrong physical sizes:
xrandr:
DP1 connected primary 3840x1080+0+0 (normal left inverted right x axis y axis)
527mm x 297mm

kscreen:
Id:  100 
Name:  "DP1" 
Type:  "Unknown" 
Connected:  true 
Enabled:  true 
Primary:  true 
Rotation:  1 
Pos:  QPoint(0,0) 
MMSize:  QSize(527, 297) 
Size:  QSize(3840, 1080) 
Clones:  1 
Mode:  "219" 
Preferred Mode:  "106" 
Preferred modes:  ("106") 
---------

I have tried to set the physical size by xrandr --fbmm but this either get
immediatly overwritten or is not set at all. (even though I'm happy to accept,
that I was just using it in a wrong way if someone shows me a command that
works :) )

The default document viewer of ubuntu works fine and does display pdfs properly
and I haven't encountered any other tool yet that displays in this stretched
way.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list