Revision: 3761
http://skim-app.svn.sourceforge.net/skim-app/?rev=3761&view=rev
Author: hofman
Date: 2008-04-18 13:01:20 -0700 (Fri, 18 Apr 2008)
Log Message:
-----------
Fix type, interpret PDF with wrong extension as PDF, not PS.
Modified Paths:
--------------
trunk/SKDocumentController.m
Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m 2008-04-18 18:45:17 UTC (rev 3760)
+++ trunk/SKDocumentController.m 2008-04-18 20:01:20 UTC (rev 3761)
@@ -188,7 +188,7 @@
NSFileHandle *fh = [NSFileHandle
fileHandleForReadingAtPath:fileName];
NSData *leadingData = [fh readDataOfLength:headerLength];
if ([leadingData length] >= [pdfHeaderData length] &&
[pdfHeaderData isEqual:[leadingData subdataWithRange:NSMakeRange(0,
[pdfHeaderData length])]]) {
- type = SKPostScriptDocumentType;
+ type = SKPDFDocumentType;
} else if ([leadingData length] >= [psHeaderData length] &&
[psHeaderData isEqual:[leadingData subdataWithRange:NSMakeRange(0,
[psHeaderData length])]]) {
type = SKPostScriptDocumentType;
}
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 the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit