Bug 115557 - Automatically detect and remove white page borders
Summary: Automatically detect and remove white page borders
Status: RESOLVED INTENTIONAL
Alias: None
Product: kpdf
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
: 146623 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-02 19:45 UTC by kde2eran
Modified: 2009-08-26 23:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example of the problem (660.51 KB, image/jpeg)
2007-09-28 19:38 UTC, kde2eran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kde2eran 2005-11-02 19:45:22 UTC
Version:            (using KDE KDE 3.4.2)
Installed from:    Fedora RPMs

Many PDF files have wide margins that, while suitable for printing on paper, are very wasteful of screen resources. This problem is especially grave with some academic publications that use enormous margins in their standard stylesheets. 

Implications include:
* In Fit to Page zoom, wide vertical margins cause the real content of the page to be unnecessarily small (and at other zoom levels page flipping is messy)
* In Continous mode, wide vertical margins necessitate a lot of scrolling between pages, and you can see less content simultaneously at page borders
* In Two Pages mode, wide horizontal margins cause the real content to be unnecessarily small (often making this important mode useless)

It would be great if KPDF had an option to automatically detect margins and to subtract them from the image, prior to calculation of zoom level and rendering. To cover the overwhelming majority of cases, it would suffice to just have a simple heuristic which identifies the maximal white strip at each of the 4 edges of the paper. Or just do whatever "gs -sDEVICE=bbox" does.

This feature would make a lot of documents much easier to read on-screen, and form a significant advantage for KPDF compared to other PDF viewers.
Comment 1 Vincent Rabaud 2006-03-18 02:26:22 UTC
This would definitely be useful when you read a pdf on a latop but also when you create your Tex file on a normal screen: you could split your screen in half and have your source Tex on the left while looking at the result on the right.

That's what I do on my Mac at least, and I think it is very convenient :)
Comment 2 kde2eran 2006-11-30 16:04:09 UTC
Should this be done specifically for PDFs, or as part of KDE's generic document viewer framework?
Comment 3 Florian Jostock 2007-02-09 17:38:15 UTC
*** This bug has been confirmed by popular vote. ***
Comment 4 Pino Toscano 2007-09-15 20:25:52 UTC
*** Bug 146623 has been marked as a duplicate of this bug. ***
Comment 5 kde2eran 2007-09-28 19:38:00 UTC
Created attachment 21707 [details]
Example of the problem

To demonstrate the importance of this feature, see the attached example. The
upper part is a screenshot of KPDF 0.5.7 showing a typical document I have to
deal with, in double-page mode. The bottom part is a mockup of what it *could*
look like. You can probably tell which is more productive.
Comment 6 Vincent Rabaud 2008-08-01 22:22:34 UTC
I know this bug concerns kpdf but shouldn't we close it now that okular provides this option ? Thx a bunch for okular btw !!
Comment 7 Albert Astals Cid 2009-08-26 23:15:03 UTC
Closing this wish.

kpdf is no longer under development and the okular team has already implemented
it. If you have a wish on top of okular implementation please open a separate bug.