Explorar o código

compdfkit(win) - 修正了命名错误

liuaoran hai 1 ano
pai
achega
504ac5289e

+ 4 - 4
Demo/Examples/Compdfkit_Tools/DigitalSignature/FillDigitalSignatureControl/FillDigitalSignatureControl.xaml.cs

@@ -120,8 +120,8 @@ namespace Compdfkit_Tools.PDFControl
                 tempSignatureConfig.LogoBitmap = new Bitmap(logoPath);
             }
             tempSignatureConfig.Content = Text;
-            tempSignatureConfig.textColor = textColor;
-            tempSignatureConfig.contentColor = new float[] { 0, 0, 0 };
+            tempSignatureConfig.TextColor = textColor;
+            tempSignatureConfig.ContentColor = new float[] { 0, 0, 0 };
             signatureWidget.UpdataApWithSignature(tempSignatureConfig);
 
             byte[] signatureBitmapBytes = GetTempSignatureImage(signatureWidget, out int width, out int height);
@@ -167,12 +167,12 @@ namespace Compdfkit_Tools.PDFControl
             checkBtn.IsChecked = true;
             if (checkBtn != TextAlignLeftBtn)
             {
-                tempSignatureConfig.IsContentAlginLeft = true;
+                tempSignatureConfig.IsContentAlignLeft = true;
                 TextAlignLeftBtn.IsChecked = false;
             }
             if (checkBtn != TextAlignRightBtn)
             {
-                tempSignatureConfig.IsContentAlginLeft = false;
+                tempSignatureConfig.IsContentAlignLeft = false;
                 TextAlignRightBtn.IsChecked = false;
             }
             CreateTempSignature();

+ 4 - 4
Demo/Examples/Samples/DigitalSignatureTest/DigitalSignatureTest.cs

@@ -117,7 +117,7 @@ namespace DigitalSignatureTest
         ///     Reason: I am the owner of the document.
         ///     DN: Subject
         ///     Location: Singapor
-        ///     IsContentAlginLeft: false
+        ///     IsContentAlignLeft: false
         ///     IsDrawLogo: True
         ///     LogoBitmap: logo.png
         ///     text color RGB: { 0, 0, 0 }
@@ -152,11 +152,11 @@ namespace DigitalSignatureTest
                 "Reason: " + reason + " \n" +
                 "Location: " + location + "\n" +
                 "DN: " + DN + "\n",
-                IsContentAlginLeft = false,
+                IsContentAlignLeft = false,
                 IsDrawLogo = true,
                 LogoBitmap = new Bitmap("Logo.png"),
-                textColor = new float[] { 0, 0, 0 },
-                contentColor = new float[] { 0, 0, 0 }
+                TextColor = new float[] { 0, 0, 0 },
+                ContentColor = new float[] { 0, 0, 0 }
             };
             string filePath = outputPath + "\\" + document.FileName + "_Signed.pdf";
             signatureField.UpdataApWithSignature(signatureConfig);