|
@@ -47,7 +47,6 @@ class KMBatchManager: NSObject {
|
|
|
let outputFolderPath = (panel.url?.path)!
|
|
|
//
|
|
|
self.batchUnkown()
|
|
|
-
|
|
|
switch type {
|
|
|
case .convertPDF:
|
|
|
self.convertPDFExport(data: data, outputFolderPath: outputFolderPath)
|
|
@@ -83,9 +82,6 @@ class KMBatchManager: NSObject {
|
|
|
KMPrint("找不到")
|
|
|
break
|
|
|
}
|
|
|
-
|
|
|
- //
|
|
|
- self.batchProgress()
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -674,10 +670,10 @@ extension KMBatchManager {
|
|
|
if data.isNewPDF {
|
|
|
if data.isMergeAll {
|
|
|
let item = filesData[0]
|
|
|
- var path = self.fetchFilePath(type: .imageToPDF, filePath: item.filePath, outputFolderPath: outputFolderPath)
|
|
|
+ let path = self.fetchFilePath(type: .imageToPDF, filePath: item.filePath, outputFolderPath: outputFolderPath)
|
|
|
|
|
|
|
|
|
- var pdfDocument = CPDFDocument()
|
|
|
+ let pdfDocument = CPDFDocument()
|
|
|
for item in filesData {
|
|
|
pdfDocument?.km_insert(image: item.image, at: pdfDocument?.pageCount ?? 0)
|
|
|
}
|