Browse Source

【2025】【Protect】标记密文, 多选,右键菜单和需求不一致

lizhe 1 month ago
parent
commit
ff996fd36f

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

@@ -5681,6 +5681,11 @@ extension KMMainViewController: CPDFViewDelegate,CPDFListViewDelegate {
                             menuStringArr.append(PDFViewMenuIdentifier_Normal_CopyText)
                             menuStringArr.append(PDFViewMenuIdentifier_Normal_Delete)
                             menuStringArr.append(PDFViewMenuIdentifier_Space)
+                        } else if firstAnnotation?.isKind(of: CPDFRedactAnnotation.self) == true {
+                            menuStringArr.append(PDFViewMenuIdentifier_Normal_Delete)
+                            menuStringArr.append(PDFViewMenuIdentifier_Space)
+                            menuStringArr.append(PDFViewMenuIdentifier_Redact_Apply)
+                            menuStringArr.append(PDFViewMenuIdentifier_Redact_Multipage)
                         } else {
                             menuStringArr.append(PDFViewMenuIdentifier_Normal_Copy)
                             menuStringArr.append(PDFViewMenuIdentifier_Normal_Cut)
@@ -5692,7 +5697,13 @@ extension KMMainViewController: CPDFViewDelegate,CPDFListViewDelegate {
                             menuStringArr.append(PDFViewMenuIdentifier_Normal_ShowPopUI)
                             menuStringArr.append(PDFViewMenuIdentifier_Space)
                         }
-                        menuStringArr.append(PDFViewMenuIdentifier_Normal_SortAnnotation)
+                        
+                        if firstAnnotation?.isKind(of: CPDFRedactAnnotation.self) == true {
+                            
+                        } else {
+                            menuStringArr.append(PDFViewMenuIdentifier_Normal_SortAnnotation)
+                        }
+                        
                         if firstAnnotation?.isKind(of: CPDFLinkAnnotation.self) == true || firstAnnotation?.isKind(of: CPDFWidgetAnnotation.self) == true  {
                             menuStringArr.append(PDFViewMenuIdentifier_Space)
                             menuStringArr.append(PDFViewMenuIdentifier_Normal_Aligning)