Revision: 5368
http://skim-app.svn.sourceforge.net/skim-app/?rev=5368&view=rev
Author: hofman
Date: 2009-05-08 11:48:06 +0000 (Fri, 08 May 2009)
Log Message:
-----------
replace PostScript and DVI in save script command handler by the proper
document type
Modified Paths:
--------------
trunk/SKPDFDocument.m
Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m 2009-05-08 11:30:41 UTC (rev 5367)
+++ trunk/SKPDFDocument.m 2009-05-08 11:48:06 UTC (rev 5368)
@@ -2023,13 +2023,25 @@
NSDictionary *args = [command evaluatedArguments];
id fileURL = [args objectForKey:@"File"];
id fileType = [args objectForKey:@"FileType"];
- // we don't want to expose the value of SKPDFDocumentType to the user, we
advertise this type as "PDF".
+ // we don't want to expose the values of SKPDFDocumentType and
SKPostScriptDocumentType to the user, we advertise these type as "PDF" and
"PostScript".
if ([fileType isEqualToString:@"PDF"]) {
fileType = SKPDFDocumentType;
NSMutableDictionary *arguments = [[command arguments] mutableCopy];
[arguments setObject:fileType forKey:@"FileType"];
[command setArguments:arguments];
[arguments release];
+ } else if ([fileType isEqualToString:@"PostScript"]) {
+ fileType = SKPostScriptDocumentType;
+ NSMutableDictionary *arguments = [[command arguments] mutableCopy];
+ [arguments setObject:fileType forKey:@"FileType"];
+ [command setArguments:arguments];
+ [arguments release];
+ } else if ([fileType isEqualToString:@"DVI"]) {
+ fileType = SKDVIDocumentType;
+ NSMutableDictionary *arguments = [[command arguments] mutableCopy];
+ [arguments setObject:fileType forKey:@"FileType"];
+ [command setArguments:arguments];
+ [arguments release];
}
if (fileURL) {
if ([fileURL isKindOfClass:[NSURL class]] == NO) {
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