Bug 333349

Summary: Some pdf have a huge minimum width
Product: [Applications] okular Reporter: Eugenio <eugenio89>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, jon
Priority: NOR    
Version: 0.18.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 4.13.1
Sentry Crash Report:
Attachments: pdf with strange format

Description Eugenio 2014-04-12 09:28:42 UTC
Some pdf can not be shrunk (in width) more than a certain size.
I tried also using kwin settings to ignore the geometric restrictions, but it doesn't work.
I think that this is due a writing ("185 x 256mm (unknown portrait paper size)") near the page position in the right down position. This writing cannot be shrunk, so the window remains huge.

Reproducible: Always
Comment 1 Albert Astals Cid 2014-04-12 16:55:35 UTC
Please attach such a file
Comment 2 Eugenio 2014-04-13 16:11:07 UTC
The original pdf is too large for my internet connection, so I created an empty pdf (with the same problem)..
I merged with gs two pdf with pages of different dimensions (I created those pdf with libreoffice). first page is a japanese letter format, the second page is a B6.
The problem is that strings like "unknown portrait paper size" or "DIN/ISO etc etc" can not be shrunk.
Try this:
go to page 2 and shrink window in width to minimum size.
go to page 1 and the window automatically enlarges.
Comment 3 Eugenio 2014-04-13 16:11:52 UTC
Created attachment 86073 [details]
pdf with strange format
Comment 4 Albert Astals Cid 2014-04-13 16:17:09 UTC
Can you define "huge width"? Open kruler an measure the number of pixels
Comment 5 Eugenio 2014-04-13 16:30:39 UTC
960 pixels with the italian localization and with little thumbnails. This is a huge minimum width if I want for example to tile the window to the left or right side of my screen (that is 1360 pixels).
Comment 6 Albert Astals Cid 2014-04-13 22:40:13 UTC
Ok
Comment 7 Albert Astals Cid 2014-04-13 22:46:08 UTC
https://git.reviewboard.kde.org/r/117555/
Comment 8 Albert Astals Cid 2014-04-15 19:21:46 UTC
Git commit e0e98658e5ce1d1165fdb5b9e910acbe1f683eb2 by Albert Astals Cid.
Committed on 15/04/2014 at 19:20.
Pushed by aacid into branch 'KDE/4.13'.

Modify how page size label is shown on the bottom bar

Opened a file with all pages with same size and behaves exactly like Okular does
Opened a file with pages with different sizes and behaves like Okular does until it stops fiting. In that moment the page bar is not centered anymore to let the text still fit and once the text doesn't fit anymore it starts getting ellided.

Reviewed by Luigi
FIXED-IN: 4.13.1

M  +0    -2    part.cpp
M  +6    -43   ui/pagesizelabel.cpp
M  +2    -6    ui/pagesizelabel.h

http://commits.kde.org/okular/e0e98658e5ce1d1165fdb5b9e910acbe1f683eb2
Comment 9 Eugenio 2014-04-15 20:55:18 UTC
Thank you!!!
Comment 10 Albert Astals Cid 2014-05-08 13:27:01 UTC
*** Bug 175514 has been marked as a duplicate of this bug. ***