ソースを参照

【2025】【Edit】裁剪模块自测修正

niehaoyu 4 ヶ月 前
コミット
cf4fca23a9

+ 3 - 0
PDF Office/PDF Master/KMClass/KMPDFViewController/EditTool/Crop/KMCropController.swift

@@ -101,6 +101,9 @@ extension KMCropController: CPDFListViewDelegate {
     func pdfListViewChangedSelectionOrMagnification(_ pdfListView: CPDFListView!) {
         print("pdfListViewChangedSelectionOrMagnification")
         
+        propertyController.cropSeparateOn = false
+        propertyController.cropAutoOn = false
+        
         propertyController.reloadData()
     }
     

+ 11 - 1
PDF Office/PDF Master/KMClass/KMPDFViewController/KMMainViewController.swift

@@ -882,7 +882,17 @@ import KMComponentLibrary
     }
     
     func updateEditModeDocumentWhenPageChanged() {
-        
+        if viewManager.editType == .watermark {
+            updateWatermarkDocument()
+        } else if viewManager.editType == .background {
+            updateBackgroundDocument()
+        } else if viewManager.editType == .header_Footer {
+            updateHeaderFooterDocument()
+        } else if viewManager.editType == .bates {
+            updateBatesDocument()
+        } else if viewManager.subToolMode == .Edit_Crop {
+            updateCropDocument()
+        }
     }
     
     //MARK: - Crop裁剪