|
@@ -176,7 +176,7 @@ extension KMMainViewController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func convertNotesUsingPDFDocument(_ pdfDocument: CPDFDocument) {
|
|
|
+ func convertNotesUsingPDFDocument(_ pdfDocument: CPDFDocument, callback: (()->Void)? = nil) {
|
|
|
guard let doc = self.listView?.document else {
|
|
|
return
|
|
|
}
|
|
@@ -250,6 +250,8 @@ extension KMMainViewController {
|
|
|
// 清空数据
|
|
|
self.model.addAnnotations.removeAll()
|
|
|
self.model.removeAnnotations.removeAll()
|
|
|
+
|
|
|
+ callback?()
|
|
|
}
|
|
|
}
|
|
|
}
|