Bug 323391 - Impossible to reduce the width of documents with portrait and landscape pages
Summary: Impossible to reduce the width of documents with portrait and landscape pages
Status: RESOLVED DUPLICATE of bug 323466
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.16.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-11 20:16 UTC by Dave Lepore
Modified: 2013-09-20 21:50 UTC (History)
2 users (show)

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


Attachments
example of a pdf where width cannot be reduced (26.11 KB, application/pdf)
2013-08-11 20:18 UTC, Dave Lepore
Details
what happens in Kile (241.78 KB, image/png)
2013-08-11 20:24 UTC, Dave Lepore
Details
what happens in Kile with okular from KDE 4.10.5 (212.32 KB, image/png)
2013-08-11 20:28 UTC, Dave Lepore
Details
LaTeX test file (254 bytes, application/x-tex)
2013-08-12 08:03 UTC, Yuri Chornoivan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Lepore 2013-08-11 20:16:54 UTC
In the Okular version shipped with KDE 4.11 RC2 I'm observing this behavior: with some pdfs (for example those with both portrait and landscape pages) its impossible to make the okular window width smaller than the landscape page size.

This does not happen with the Okular version shipper with KDE 4.10.5, so it seems it's not a backend problem (just wild guessing).

Such behavior is particulary bad when using the Okular part in Kile, since the Okular part takes more than half of the screen space, stealing precious space for the editor.

Reproducible: Always

Steps to Reproduce:
1. open the attached document
2. try to reduce the width
Actual Results:  
you can't have a window smaller than the landscape page width

Expected Results:  
the windows should shrink as in KDE 4.10.5
Comment 1 Dave Lepore 2013-08-11 20:18:35 UTC
Created attachment 81642 [details]
example of a pdf where width cannot be reduced
Comment 2 Dave Lepore 2013-08-11 20:24:59 UTC
Created attachment 81643 [details]
what happens in Kile

This is the minimum size of the okular part in Kile when editing the .tex file that generates the attached pdf - with Okular from KDE 4.11 RC2
Comment 3 Dave Lepore 2013-08-11 20:28:16 UTC
Created attachment 81644 [details]
what happens in Kile with okular from KDE 4.10.5

This is the minimum size of the Okular part in Kile when using Okular from KDE 4.10.5
Comment 4 Yuri Chornoivan 2013-08-12 08:03:13 UTC
Created attachment 81659 [details]
LaTeX test file

Confirmed for attached LaTeX file and poppler/Okular/Kile from git/master.
Comment 5 Albert Astals Cid 2013-08-12 21:30:50 UTC
Yes, that does happen. Not sure it's a bug to be honest, we need to show the "every page is different size info" in the page bar and it's just a long string because you are using unstandard page sizes. If you want to have a smaller size, just hide the page bar.

If you want to convince me this is a bug, you'll have to offer an alternative place to show the page size.
Comment 6 Dave Lepore 2013-08-12 23:06:59 UTC
ah! so the problem is in the page bar! The workaround is an acceptable solution for me but, just asking, wouldn't be possible to restore the behaviour of 4.10.5? There I see: 

"7.67717in x 5.311496in"

While in RC2-master I see:
"7.67717in x 5.311496in in (unknown landscape paper size)"

(then the numbers change when you scroll to the portrait pages, where the "in unknown..." part is not shown anymore)

is the "(in unknown landscape paper size)" really necessary? It doubles the needed space without (IMO) adding useful information.

So, why couldn't you just remove that part and restore the 4.10.5 behavior?
Comment 7 Dave Lepore 2013-08-12 23:15:53 UTC
erm, I just noticed that in the okular_part there is no option to remove the page bar. So please at least add an option to remove the bar from the okular part, because the problem gets severe when you use okular as previewer in another program (e. g. Kile)
Comment 8 Albert Astals Cid 2013-08-13 17:27:35 UTC
You noticed wrong, okular_part properly exports the option to remove the page bar (since you can access it perfectly from Konqueror), if Kile doesn't show it, complain to Kile people.

And no, i'm not restoring 4.10.5 behaviour, this behaviour is better, maybe you should stop generating documents with unstandard page sizes ;-)
Comment 9 Dave Lepore 2013-08-13 18:11:41 UTC
I only use the okular part in Kile... I'm seeing now it works differently in konqueror, I'll go ask Kile people about it. 

Oh and well, thank you for the advice, I've already sent an email to my boss, explaining that he should stop asking me documents with non standard paper sizes as suggested by the Okular mantainer ;)

Best.
Comment 10 Christoph Feck 2013-08-29 21:21:35 UTC
So should this bug be reassigned to Kile developers?
Comment 11 Albert Astals Cid 2013-08-29 21:31:11 UTC
Or at least adding them as CC, yeah, can you do that, please?
Comment 12 Christoph Feck 2013-09-12 12:38:14 UTC
Adding Kile developer to CC list.
Comment 13 Dave Lepore 2013-09-12 21:57:05 UTC
Ehm, sorry for the late reply, I had already opened a new bug for Kile: https://bugs.kde.org/show_bug.cgi?id=323466 

so maybe one should be closed as duplicate now
Comment 14 Christoph Feck 2013-09-20 21:50:13 UTC
Okay :)

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