Browse Source

compdfkit(win) - 修复了签名后保存不亮起的问题

liuaoran 1 year ago
parent
commit
4caffad4b5

+ 1 - 0
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFSignatureUI.xaml.cs

@@ -90,6 +90,7 @@ namespace Compdfkit_Tools.Annotation.PDFAnnotationPanel.PDFAnnotationUI
                         frame.CopyPixels(ImageArray, frame.PixelWidth * 4, 0);
                         widgetSignArgs?.UpdateApWithImage(ImageArray, ImageWidth, ImageHeight, C_Scale_Type.fitCenter, 0);
                         pdfViewer?.ReloadVisibleAnnots();
+                        pdfViewer.UndoManager.CanSave = true;
                     }
                 }
             }

+ 0 - 1
Demo/Examples/Compdfkit_Tools/PDFView/RegularViewerControl.xaml.cs

@@ -104,7 +104,6 @@ namespace Compdfkit_Tools.PDFView
         private void InitialControl()
         {
             PdfViewControl.PDFView?.SetMouseMode(MouseModes.Viewer);
-            //PDFViewControl.PDFView?.Load();
             PdfViewControl.PDFView?.SetShowLink(true);
             PDFGrid.Child = PdfViewControl; 
             PdfViewControl.PDFView.UndoManager.PropertyChanged -= UndoManager_PropertyChanged;