Bug 333349 - Some pdf have a huge minimum width
Summary: Some pdf have a huge minimum width
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.18.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 175514 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-12 09:28 UTC by Eugenio
Modified: 2014-05-08 13:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.13.1
Sentry Crash Report:


Attachments
pdf with strange format (3.63 KB, application/pdf)
2014-04-13 16:11 UTC, Eugenio
Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***