Revision: 4348
http://skim-app.svn.sourceforge.net/skim-app/?rev=4348&view=rev
Author: hofman
Date: 2008-08-04 14:56:34 +0000 (Mon, 04 Aug 2008)
Log Message:
-----------
Fix converting pdf to pdfd in tool; copy pdf data to proper file. Only copy
data as the attributes are saved separately.
Modified Paths:
--------------
trunk/SkimNotes/skimnotes.m
Modified: trunk/SkimNotes/skimnotes.m
===================================================================
--- trunk/SkimNotes/skimnotes.m 2008-08-04 13:11:29 UTC (rev 4347)
+++ trunk/SkimNotes/skimnotes.m 2008-08-04 14:56:34 UTC (rev 4348)
@@ -310,8 +310,8 @@
success = [fm copyPath:pdfFilePath toPath:notesPath
handler:nil];
} else {
if (success = [fm createDirectoryAtPath:notesPath
attributes:nil]) {
- NSString *pdfFilePath = [notesPath
stringByAppendingPathComponent:[[[notesPath lastPathComponent]
stringByDeletingPathExtension] stringByAppendingPathExtension:PDFD_EXTENSION]];
- success = [fm copyPath:pdfPath toPath:pdfFilePath
handler:nil];
+ NSString *pdfFilePath = [notesPath
stringByAppendingPathComponent:[[[notesPath lastPathComponent]
stringByDeletingPathExtension] stringByAppendingPathExtension:PDF_EXTENSION]];
+ success = [[NSData dataWithContentsOfFile:pdfPath
options:0 error:&error] writeToFile:pdfFilePath options:0 error:&error];
}
}
if (success) {
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 Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit