Revision: 3460
http://skim-app.svn.sourceforge.net/skim-app/?rev=3460&view=rev
Author: hofman
Date: 2008-03-11 05:42:19 -0700 (Tue, 11 Mar 2008)
Log Message:
-----------
Crop media box for PDF image copied from current selection. Users will expect
to use only the cropped part, and many apps (including Pages) can't handle PDF
images with a different crop and media box.
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2008-03-10 18:38:02 UTC (rev 3459)
+++ trunk/SKPDFView.m 2008-03-11 12:42:19 UTC (rev 3460)
@@ -713,7 +713,8 @@
PDFDocument *pdfDoc = [[PDFDocument alloc] initWithData:[page
dataRepresentation]];
page = [pdfDoc pageAtIndex:0];
- [page setBounds:targetRect forBox:kPDFDisplayBoxCropBox];
+ [page setBounds:targetRect forBox:kPDFDisplayBoxMediaBox];
+ [page setBounds:NSZeroRect forBox:kPDFDisplayBoxCropBox];
[page setBounds:NSZeroRect forBox:kPDFDisplayBoxBleedBox];
[page setBounds:NSZeroRect forBox:kPDFDisplayBoxTrimBox];
[page setBounds:NSZeroRect forBox:kPDFDisplayBoxArtBox];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit