[Okular-devel] [Bug 148527] I want more zoom with okular

Jason Palmer jalanpalmer at gmail.com
Mon Mar 29 16:19:54 CEST 2010


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


Jason Palmer <jalanpalmer at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jalanpalmer at gmail.com




--- Comment #6 from Jason Palmer <jalanpalmer gmail com>  2010-03-29 16:19:25 ---
Disclaimer: I've never touched kde code before now. I just starting poking
around to try to get a handle on the reasons for this bug.

Comment 5 seems to have the right idea: when we zoom in, okular requests a
pixmap of the whole page at that zoom level (and the previous and next pages
too, I think). See
http://websvn.kde.org/trunk/KDE/kdegraphics/okular/ui/pageview.cpp?revision=1107507&view=markup
line #3133 for that.

If the requested pixmap would have more than 20,000,000 pixels, the request
just gets dropped. See
http://websvn.kde.org/trunk/KDE/kdegraphics/okular/core/document.cpp?revision=1105306&view=markup
line #842 for that.

I modified a few files to get zoom to 1600% here. I changed 20 million to 150
million. God it's slow, but it's BIG :) I'll attach my patch, which is against
kdegraphics 4.3.5. Sorry, I didn't take the time to make this apply to trunk,
but I don't have all the tools needed to work like that set up. (I'm just
relying on gentoo's package manager to do my patching and build for me.)

This patch is probably not very useful in practice, but you are welcome to bog
down your system with it!

I hope someone fixes okular to only request pixmaps for the visible region
instead of the whole page.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list