Bug 196761 - Okular trim margins cuts some pictures
Summary: Okular trim margins cuts some pictures
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 186970 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-16 16:03 UTC by Mirza
Modified: 2009-12-26 23:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
File that causes Okular to cut pictures (453.64 KB, application/pdf)
2009-06-16 16:17 UTC, Mirza
Details
okular-incorrectly-trimmed.png (174.28 KB, image/png)
2009-10-18 02:11 UTC, Mike Frysinger
Details
PDF used in previous screenshot (209.22 KB, application/pdf)
2009-10-18 02:13 UTC, Mike Frysinger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mirza 2009-06-16 16:03:23 UTC
Version:           0.8.80 (using 4.2.90 (KDE 4.2.90 (KDE 4.3 Beta2)), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.28-13-generic

Okular has an option called: Trim Margins in the View menu.
This option on some pdf files cuts part of paper that has picture on it.

Here are some screenshots:
Original: http://img4.imageshack.us/img4/3445/plasmadrop2imageshack12.png

Trim Margins: http://img209.imageshack.us/img209/5166/plasmadrop2imageshack69.png

This doesn't happend only on one page of one pdf but across many.
Comment 1 Pino Toscano 2009-06-16 16:12:08 UTC
Can you please attach one of the documents showing the issue?
Comment 2 Mirza 2009-06-16 16:17:57 UTC
Created attachment 34587 [details]
File that causes Okular to cut pictures

This is one example where Okular cuts pictures when the 'Trim Margins' option is enabled.
Comment 3 Mike Frysinger 2009-10-18 02:04:27 UTC
i'm pretty sure i'm seeing the same thing.  if you grab any of the MBTA bus maps, the left/right part of the pages get trimmed.

for example, the map here:
http://www.mbta.com/schedules_and_maps/bus/routes/?route=34E
http://www.mbta.com/uploadedFiles/Documents/Schedules_and_Maps/Bus/03434Emap.pdf

disabling trim margins allows the entire thing to be viewed in the main pane.
Comment 4 Mike Frysinger 2009-10-18 02:11:55 UTC
Created attachment 37641 [details]
okular-incorrectly-trimmed.png

screen shot of Okular-0.9.1 with KDE-4.3.1 on Gentoo/x86_64.  disabling "Trim Margins" in the "View" menu allows the entire page to be viewed in the main pane.
Comment 5 Mike Frysinger 2009-10-18 02:13:08 UTC
Created attachment 37642 [details]
PDF used in previous screenshot

attaching the PDF used in aforementioned screenshot in case it is removed/changed/whatever on the MBTA website
Comment 6 Albert Astals Cid 2009-10-22 22:51:20 UTC
SVN commit 1039155 by aacid:

crop area needs to be just against user rotation, not taking account page orientation since the cropbox is done on page orientation coords
BUGS: 196761


 M  +2 -2      pageview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1039155
Comment 7 Albert Astals Cid 2009-10-22 22:52:23 UTC
SVN commit 1039156 by aacid:

Backport r1039155 | aacid | 2009-10-22 22:51:18 +0200 (Thu, 22 Oct 2009) | 3 lines

crop area needs to be just against user rotation, not taking account page orientation since the cropbox is done on page orientation coords
BUGS: 196761


 M  +2 -2      pageview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1039156
Comment 8 Mirza 2009-11-03 22:19:35 UTC
thanks for fixing this bug for KDE 4.3.3
Comment 9 Pino Toscano 2009-12-26 23:14:51 UTC
*** Bug 186970 has been marked as a duplicate of this bug. ***