Browse Source

ComPDFKit(win) - 修复创建文字印章注释崩溃的问题

TangJinZhou 10 months ago
parent
commit
d70bd44053

+ 4 - 0
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFCreateStampDialog.xaml.cs

@@ -332,6 +332,10 @@ namespace Compdfkit_Tools.Annotation.PDFAnnotationPanel.PDFAnnotationUI
 
             CustomStampPath = Path.Combine(Environment.CurrentDirectory, "ComPDFKit");
             CustomStampPath = Path.Combine(CustomStampPath, "CustomStamp");
+            if (!Directory.Exists(CustomStampPath))
+            {
+                Directory.CreateDirectory(CustomStampPath);
+            }
 
             Binding ShapeBoxbinding = new Binding();
             ShapeBoxbinding.Source = this;