Revision: 5357
http://skim-app.svn.sourceforge.net/skim-app/?rev=5357&view=rev
Author: hofman
Date: 2009-05-06 21:34:25 +0000 (Wed, 06 May 2009)
Log Message:
-----------
only save PS/DVI for PS/DVI documents, otherwise the data is not available
Modified Paths:
--------------
trunk/SKPDFDocument.m
Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m 2009-05-06 21:30:31 UTC (rev 5356)
+++ trunk/SKPDFDocument.m 2009-05-06 21:34:25 UTC (rev 5357)
@@ -445,8 +445,12 @@
didWrite = [[self pdfDocument] writeToURL:absoluteURL];
} else if (SKIsPDFDocumentType(typeName) ||
SKIsBarePDFDocumentType(typeName)) {
didWrite = [pdfData writeToURL:absoluteURL options:0 error:&error];
- } else if (SKIsPostScriptDocumentType(typeName) ||
SKIsDVIDocumentType(typeName) || SKIsBarePostScriptDocumentType(typeName) ||
SKIsBareDVIDocumentType(typeName)) {
- didWrite = [psOrDviData writeToURL:absoluteURL options:0 error:&error];
+ } else if (SKIsPostScriptDocumentType(typeName) ||
SKIsBarePostScriptDocumentType(typeName)) {
+ if (SKIsPostScriptDocumentType([self fileType]))
+ didWrite = [psOrDviData writeToURL:absoluteURL options:0
error:&error];
+ } else if (SKIsDVIDocumentType(typeName) ||
SKIsBareDVIDocumentType(typeName)) {
+ if (SKIsDVIDocumentType([self fileType]))
+ didWrite = [psOrDviData writeToURL:absoluteURL options:0
error:&error];
} else if (SKIsPDFBundleDocumentType(typeName)) {
NSString *name = [[[absoluteURL path] lastPathComponent]
stringByDeletingPathExtension];
if ([name caseInsensitiveCompare:BUNDLE_DATA_FILENAME] ==
NSOrderedSame)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit