|
@@ -58,6 +58,8 @@ class KMBatchConvertParameter: KMBatchBaseParameter {
|
|
rtString = "tiff"
|
|
rtString = "tiff"
|
|
} else if self.convertType == .JPEG2000 {
|
|
} else if self.convertType == .JPEG2000 {
|
|
rtString = "jp2"
|
|
rtString = "jp2"
|
|
|
|
+ } else if self.convertType == .Json {
|
|
|
|
+ rtString = "json"
|
|
}
|
|
}
|
|
return rtString
|
|
return rtString
|
|
}
|
|
}
|
|
@@ -70,7 +72,7 @@ class KMBatchConvertParameter: KMBatchBaseParameter {
|
|
self.outPutPath = self.getUniqueFilePath(filePath: self.outPutPath ?? "")
|
|
self.outPutPath = self.getUniqueFilePath(filePath: self.outPutPath ?? "")
|
|
}
|
|
}
|
|
return self.outPutPath
|
|
return self.outPutPath
|
|
- } else if self.convertType == .WordStandard || self.convertType == .WordAdvance || self.convertType == .Excel || self.convertType == .PowerPoint || self.convertType == .RTF || self.convertType == .HTML || self.convertType == .Text {
|
|
|
|
|
|
+ } else if self.convertType == .WordStandard || self.convertType == .WordAdvance || self.convertType == .Excel || self.convertType == .PowerPoint || self.convertType == .RTF || self.convertType == .HTML || self.convertType == .Text || self.convertType == .Json {
|
|
let filePath1 = self.savePath?.stringByAppendingPathComponent(self.operateFile!.filePath.getLastComponentDeleteExtension)
|
|
let filePath1 = self.savePath?.stringByAppendingPathComponent(self.operateFile!.filePath.getLastComponentDeleteExtension)
|
|
self.outPutPath = self.getUniqueFilePath(filePath: filePath1!.stringByAppendingPathExtension(self.extensionString()!))
|
|
self.outPutPath = self.getUniqueFilePath(filePath: filePath1!.stringByAppendingPathExtension(self.extensionString()!))
|
|
return self.outPutPath
|
|
return self.outPutPath
|
|
@@ -94,7 +96,7 @@ class KMBatchConvertParameter: KMBatchBaseParameter {
|
|
self.convertType == .PowerPoint ||
|
|
self.convertType == .PowerPoint ||
|
|
self.convertType == .RTF ||
|
|
self.convertType == .RTF ||
|
|
self.convertType == .HTML ||
|
|
self.convertType == .HTML ||
|
|
- self.convertType == .Text {
|
|
|
|
|
|
+ self.convertType == .Text || self.convertType == .Json {
|
|
let filePath1 = self.savePath!.stringByAppendingPathComponent(self.operateFile!.filePath.lastPathComponent.deletingPathExtension)
|
|
let filePath1 = self.savePath!.stringByAppendingPathComponent(self.operateFile!.filePath.lastPathComponent.deletingPathExtension)
|
|
return self.getUniqueFilePath(filePath: filePath1.stringByAppendingPathExtension(self.extensionString()!))
|
|
return self.getUniqueFilePath(filePath: filePath1.stringByAppendingPathExtension(self.extensionString()!))
|
|
}
|
|
}
|