After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 313831 - Zoom based on bounding box
Zoom based on bounding box
Status: RESOLVED DUPLICATE of bug 169676
Product: evince
Classification: Core
Component: general
Other All
: Normal minor
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Reported: 2005-08-18 12:56 UTC by Ashvin Goel
Modified: 2005-08-18 18:36 UTC
See Also:
GNOME target: ---
GNOME version: ---

Description Ashvin Goel 2005-08-18 12:56:51 UTC
Most reader applications have zoom functionality that allows operations such as
fit to page width, fit to page size or full screen. Yet another zoom operation
that I think is very useful is "zoom to bounding box". This zoom would show the
text of a document at the largest zoom possible while showing all the text in a

Other information:
I have implemented zoom to bounding box externally for acroread. For pdf files,
I use ghostscript to figure out the bounding box of the document. Since the
bounding box varies across pages, I heuristically find the maximal bounding box
until it does not change for 5-7 pages. Then based on the screen resolution and
the bounding box, I calculate the geometry for acroread so that *only* the
bounding box is visible on screen and then invoke acroread with this geometry. I
can't do this with evince since it doesn't provide the geometry argument. Please
add the X geometry argument to evince or if possible implement the "zoom to
bounding box" since that is what I do manually otherwise while reading
documents. Thanks!
Comment 1 Bryan W Clark 2005-08-18 14:22:12 UTC
Sounds similar to bug 169676
Comment 2 Ashvin Goel 2005-08-18 14:49:30 UTC
I agree that this bug is a duplicate of <a
href="">bug 169676</a>.

If someone wants my (perl-based) implementation of bounding box detection as
well as setting of geometry for acroread (it is tricky to get it right for
portrait as well as landscape documents), feel free to send me mail.
Comment 3 Nickolay V. Shmyrev 2005-08-18 18:36:53 UTC
Thanks for suggestion. 

If your implementation not so big, it may have sense just to attach it to bug
169676, I think it would be helpful.

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