Explorar o código

compdfkit(win) - V1.11.0项目确认

weixiangjie hai 1 ano
pai
achega
c49818ad6d
Modificáronse 59 ficheiros con 163 adicións e 113 borrados
  1. 10 6
      Demo/Examples/Annotations/Annotations.csproj
  2. 5 1
      Demo/Examples/Annotations/App.xaml.cs
  3. 3 1
      Demo/Examples/Annotations/MainWindow.xaml.cs
  4. 5 1
      Demo/Examples/ContentEditor/App.xaml.cs
  5. 6 4
      Demo/Examples/ContentEditor/ContentEditor.csproj
  6. 1 1
      Demo/Examples/ContentEditor/MainWindow.xaml.cs
  7. 5 1
      Demo/Examples/DigitalSignature/App.xaml.cs
  8. 6 4
      Demo/Examples/DigitalSignature/DigitalSignature.csproj
  9. 1 1
      Demo/Examples/DigitalSignature/MainWindow.xaml.cs
  10. 5 1
      Demo/Examples/DocsEditor/App.xaml.cs
  11. 9 3
      Demo/Examples/DocsEditor/DocsEditor.csproj
  12. 1 1
      Demo/Examples/DocsEditor/MainWindow.xaml.cs
  13. 5 1
      Demo/Examples/Forms/App.xaml.cs
  14. 6 2
      Demo/Examples/Forms/Forms.csproj
  15. 1 1
      Demo/Examples/Forms/MainWindow.xaml.cs
  16. 1 1
      Demo/Examples/PDFViewer/App.xaml.cs
  17. 2 2
      Demo/Examples/Samples/AnnotationImportExportTest/CS/AnnotationImportExportTest.csproj
  18. 2 2
      Demo/Examples/Samples/AnnotationImportExportTest/VB/AnnotationImportExportTest.vbproj
  19. 2 2
      Demo/Examples/Samples/AnnotationTest/VB/AnnotationTest.vbproj
  20. 2 2
      Demo/Examples/Samples/BackgroundTest/CS/BackgroundTest.csproj
  21. 2 2
      Demo/Examples/Samples/BackgroundTest/VB/BackgroundTest.vbproj
  22. 2 2
      Demo/Examples/Samples/BatesTest/CS/BatesTest.csproj
  23. 2 2
      Demo/Examples/Samples/BatesTest/VB/BatesTest.vbproj
  24. 2 2
      Demo/Examples/Samples/BookmarkTest/CS/BookmarkTest.csproj
  25. 3 3
      Demo/Examples/Samples/BookmarkTest/VB/BookmarkTest.vbproj
  26. 2 2
      Demo/Examples/Samples/DigitalSignatureTest/CS/DigitalSignatureTest.csproj
  27. 2 2
      Demo/Examples/Samples/DigitalSignatureTest/VB/DigitalSignatureTest.vbproj
  28. 2 2
      Demo/Examples/Samples/DocumentCompare/CS/DocumentCompareTest.csproj
  29. 2 2
      Demo/Examples/Samples/DocumentCompare/VB/DocumentCompareTest.vbproj
  30. 2 2
      Demo/Examples/Samples/DocumentInfoTest/CS/DocumentInfoTest.csproj
  31. 2 2
      Demo/Examples/Samples/DocumentInfoTest/VB/DocumentInfoTest.vbproj
  32. 2 2
      Demo/Examples/Samples/EncryptTest/CS/EncryptTest.csproj
  33. 2 2
      Demo/Examples/Samples/EncryptTest/VB/EncryptTest.vbproj
  34. 2 2
      Demo/Examples/Samples/FlattenTest/CS/FlattenTest.csproj
  35. 2 2
      Demo/Examples/Samples/FlattenTest/VB/FlattenTest.vbproj
  36. 2 2
      Demo/Examples/Samples/HeaderFooterTest/CS/HeaderFooterTest.csproj
  37. 2 2
      Demo/Examples/Samples/HeaderFooterTest/VB/HeaderFooterTest.vbproj
  38. 2 2
      Demo/Examples/Samples/ImageExtractTest/CS/ImageExtractTest.csproj
  39. 2 2
      Demo/Examples/Samples/ImageExtractTest/VB/ImageExtractTest.vbproj
  40. 2 2
      Demo/Examples/Samples/InteractiveFormsTest/CS/InteractiveFormsTest.csproj
  41. 2 2
      Demo/Examples/Samples/InteractiveFormsTest/VB/InteractiveFormsTest.vbproj
  42. 1 1
      Demo/Examples/Samples/LicenseKey.cs
  43. 2 2
      Demo/Examples/Samples/OutlineTest/CS/OutlineTest.csproj
  44. 2 2
      Demo/Examples/Samples/OutlineTest/VB/OutlineTest.vbproj
  45. 2 2
      Demo/Examples/Samples/PDFATest/CS/PDFATest.csproj
  46. 2 2
      Demo/Examples/Samples/PDFATest/VB/PDFATest.vbproj
  47. 2 2
      Demo/Examples/Samples/PDFPageTest/CS/PDFPageTest.csproj
  48. 2 2
      Demo/Examples/Samples/PDFPageTest/VB/PDFPageTest.vbproj
  49. 2 2
      Demo/Examples/Samples/PDFRedactTest/CS/PDFRedactTest.csproj
  50. 2 2
      Demo/Examples/Samples/PDFRedactTest/VB/PDFRedactTest.vbproj
  51. 2 2
      Demo/Examples/Samples/PDFToImage/CS/PDFToImageTest.csproj
  52. 2 2
      Demo/Examples/Samples/PDFToImage/VB/PDFToImageTest.vbproj
  53. 2 2
      Demo/Examples/Samples/TextExtractTest/CS/TextExtractTest.csproj
  54. 2 2
      Demo/Examples/Samples/TextExtractTest/VB/TextExtractTest.vbproj
  55. 2 2
      Demo/Examples/Samples/TextSearchTest/VB/TextSearchTest.vbproj
  56. 2 2
      Demo/Examples/Samples/WatermarkTest/VB/WatermarkTest.vbproj
  57. 6 2
      Demo/Examples/Viewer/App.xaml.cs
  58. 1 1
      Demo/Examples/Viewer/MainWindow.xaml.cs
  59. 6 0
      Demo/Examples/Viewer/Viewer.csproj

+ 10 - 6
Demo/Examples/Annotations/Annotations.csproj

@@ -99,12 +99,6 @@
     <None Include="App.config" />
     <None Include="packages.config" />
   </ItemGroup>
-  <ItemGroup>
-    <None Include="..\TestFile\PDF32000_2008.pdf">
-      <Link>PDF32000_2008.pdf</Link>
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </None>
-  </ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\Compdfkit_Tools\Compdfkit_Tools.csproj">
       <Project>{9363bcb1-3a67-446a-8093-5708b86bf418}</Project>
@@ -114,6 +108,16 @@
   <ItemGroup>
     <Resource Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
+  <ItemGroup>
+    <None Include="..\license_key_windows.txt">
+      <Link>license_key_windows.txt</Link>
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </None>
+    <Content Include="..\TestFile\ComPDFKit_Annotations_Sample_File.pdf">
+      <Link>ComPDFKit_Annotations_Sample_File.pdf</Link>
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <Import Project="..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets" Condition="Exists('..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets')" />
   <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

+ 5 - 1
Demo/Examples/Annotations/App.xaml.cs

@@ -1,6 +1,8 @@
+using System.Globalization;
 using ComPDFKit.NativeMethod;
 using Compdfkit_Tools.Helper;
 using System.Reflection;
+using System.Threading;
 using System.Windows;
 using System.Xml;
 using static ComPDFKit.NativeMethod.CPDFSDKVerifier;
@@ -18,6 +20,8 @@ namespace AnnotationViewControl
             string str = this.GetType().Assembly.Location;
             base.OnStartup(e);
             LicenseVerify();
+            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
+            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
         }
 
         private static bool LicenseVerify()
@@ -26,7 +30,7 @@ namespace AnnotationViewControl
                 return false;
 
             LicenseErrorCode verifyResult = CPDFSDKVerifier.LicenseVerify("license_key_windows.txt", true);
-            return (verifyResult != LicenseErrorCode.E_LICENSE_SUCCESS);
+            return (verifyResult == LicenseErrorCode.E_LICENSE_SUCCESS);
         }
     }
 }

+ 3 - 1
Demo/Examples/Annotations/MainWindow.xaml.cs

@@ -11,8 +11,10 @@ using System.Collections.Generic;
 using System.ComponentModel;
 using System.Diagnostics;
 using System.Drawing;
+using System.Globalization;
 using System.IO;
 using System.Runtime.CompilerServices;
+using System.Threading;
 using System.Windows;
 using System.Windows.Controls;
 using System.Windows.Controls.Primitives;
@@ -97,7 +99,7 @@ namespace AnnotationViewControl
 
         private void LoadDefaultDocument()
         {
-            string defaultFilePath = "PDF32000_2008.pdf";
+            string defaultFilePath = "ComPDFKit_Annotations_Sample_File.pdf";
             pdfViewer.PDFView.InitDocument(defaultFilePath);
             LoadDocument();
         }

+ 5 - 1
Demo/Examples/ContentEditor/App.xaml.cs

@@ -4,8 +4,10 @@ using System;
 using System.Collections.Generic;
 using System.Configuration;
 using System.Data;
+using System.Globalization;
 using System.Linq;
 using System.Reflection;
+using System.Threading;
 using System.Threading.Tasks;
 using System.Windows;
 using System.Xml;
@@ -21,6 +23,8 @@ namespace ContentEditorViewControl
             string str = this.GetType().Assembly.Location;
             base.OnStartup(e);
             LicenseVerify();
+            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
+            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
         }
 
         private static bool LicenseVerify()
@@ -29,7 +33,7 @@ namespace ContentEditorViewControl
                 return false;
 
             LicenseErrorCode verifyResult = CPDFSDKVerifier.LicenseVerify("license_key_windows.txt", true);
-            return (verifyResult != LicenseErrorCode.E_LICENSE_SUCCESS);
+            return (verifyResult == LicenseErrorCode.E_LICENSE_SUCCESS);
         }
     }
 }

+ 6 - 4
Demo/Examples/ContentEditor/ContentEditor.csproj

@@ -102,10 +102,6 @@
       <Generator>ResXFileCodeGenerator</Generator>
       <LastGenOutput>Resources.Designer.cs</LastGenOutput>
     </EmbeddedResource>
-    <None Include="..\TestFile\PDF32000_2008.pdf">
-      <Link>PDF32000_2008.pdf</Link>
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </None>
     <None Include="packages.config" />
     <None Include="Properties\Settings.settings">
       <Generator>SettingsSingleFileGenerator</Generator>
@@ -130,6 +126,12 @@
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </None>
   </ItemGroup>
+  <ItemGroup>
+    <Content Include="..\TestFile\ComPDFKit_Sample_File_Windows.pdf">
+      <Link>ComPDFKit_Sample_File_Windows.pdf</Link>
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <Import Project="..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets" Condition="Exists('..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets')" />
   <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

+ 1 - 1
Demo/Examples/ContentEditor/MainWindow.xaml.cs

@@ -101,7 +101,7 @@ namespace ContentEditorViewControl
 
         private void LoadDefaultDocument()
         {
-            string defaultFilePath = "PDF32000_2008.pdf";
+            string defaultFilePath = "ComPDFKit_Sample_File_Windows.pdf";
             pdfViewer.PDFView.InitDocument(defaultFilePath);
             LoadDocument();
         }

+ 5 - 1
Demo/Examples/DigitalSignature/App.xaml.cs

@@ -4,7 +4,9 @@ using System;
 using System.Collections.Generic;
 using System.Configuration;
 using System.Data;
+using System.Globalization;
 using System.Linq;
+using System.Threading;
 using System.Threading.Tasks;
 using System.Windows;
 
@@ -19,6 +21,8 @@ namespace DigitalSignature
         { 
             base.OnStartup(e);
             LicenseVerify();
+            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
+            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
         }
 
         private static bool LicenseVerify()
@@ -27,7 +31,7 @@ namespace DigitalSignature
                 return false;
 
             LicenseErrorCode verifyResult = CPDFSDKVerifier.LicenseVerify("license_key_windows.txt", true);
-            return (verifyResult != LicenseErrorCode.E_LICENSE_SUCCESS);
+            return (verifyResult == LicenseErrorCode.E_LICENSE_SUCCESS);
         }
     }
 }

+ 6 - 4
Demo/Examples/DigitalSignature/DigitalSignature.csproj

@@ -131,10 +131,6 @@
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </None>
-    <Content Include="..\TestFile\PDF32000_2008.pdf">
-      <Link>PDF32000_2008.pdf</Link>
-      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
-    </Content>
     <None Include="packages.config" />
     <None Include="Properties\Settings.settings">
       <Generator>SettingsSingleFileGenerator</Generator>
@@ -162,6 +158,12 @@
       <Install>false</Install>
     </BootstrapperPackage>
   </ItemGroup>
+  <ItemGroup>
+    <Content Include="..\TestFile\ComPDFKit_Signatures_Sample_File.pdf">
+      <Link>ComPDFKit_Signatures_Sample_File.pdf</Link>
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <Import Project="..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets" Condition="Exists('..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets')" />
   <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

+ 1 - 1
Demo/Examples/DigitalSignature/MainWindow.xaml.cs

@@ -169,7 +169,7 @@ namespace DigitalSignature
         /// </summary>
         private void LoadDefaultDocument()
         {
-            string defaultFilePath = "PDF32000_2008.pdf";
+            string defaultFilePath = "ComPDFKit_Signatures_Sample_File.pdf";
             pdfViewer.PDFView.InitDocument(defaultFilePath);
             LoadDocument();
         }

+ 5 - 1
Demo/Examples/DocsEditor/App.xaml.cs

@@ -4,8 +4,10 @@ using System;
 using System.Collections.Generic;
 using System.Configuration;
 using System.Data;
+using System.Globalization;
 using System.Linq;
 using System.Reflection;
+using System.Threading;
 using System.Threading.Tasks;
 using System.Windows;
 using System.Xml;
@@ -24,6 +26,8 @@ namespace DocsEditControl
             string str = this.GetType().Assembly.Location;
             base.OnStartup(e);
             LicenseVerify();
+            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
+            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
         }
 
         private static bool LicenseVerify()
@@ -32,7 +36,7 @@ namespace DocsEditControl
                 return false;
 
             LicenseErrorCode verifyResult = CPDFSDKVerifier.LicenseVerify("license_key_windows.txt", true);
-            return (verifyResult != LicenseErrorCode.E_LICENSE_SUCCESS);
+            return (verifyResult == LicenseErrorCode.E_LICENSE_SUCCESS);
         }
     }
 }

+ 9 - 3
Demo/Examples/DocsEditor/DocsEditor.csproj

@@ -7,7 +7,7 @@
     <ProjectGuid>{D3003B68-0D1E-47B2-84CA-D6B749BABC74}</ProjectGuid>
     <OutputType>WinExe</OutputType>
     <RootNamespace>DocsEditControl</RootNamespace>
-    <AssemblyName>Document Editor_ComPDFKit</AssemblyName>
+    <AssemblyName>Docs Editor_ComPDFKit</AssemblyName>
     <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
     <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
@@ -122,12 +122,18 @@
     </ProjectReference>
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\license_key_windows.txt">
+    <None Include="..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Resource Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
+  <ItemGroup>
+    <Content Include="..\TestFile\ComPDFKit_Sample_File_Windows.pdf">
+      <Link>ComPDFKit_Sample_File_Windows.pdf</Link>
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <Import Project="..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets" Condition="Exists('..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets')" />
   <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

+ 1 - 1
Demo/Examples/DocsEditor/MainWindow.xaml.cs

@@ -61,7 +61,7 @@ namespace DocsEditor
 
         private void LoadDefaultDocument()
         {
-            string defaultFilePath = "PDF32000_2008.pdf";
+            string defaultFilePath = "ComPDFKit_Sample_File_Windows.pdf";
             LeftToolPanelButton.IsEnabled = false;
             SearchButton.IsEnabled = false;
             RightPanelButton.IsEnabled = false;

+ 5 - 1
Demo/Examples/Forms/App.xaml.cs

@@ -1,4 +1,6 @@
+using System.Globalization;
 using System.Reflection;
+using System.Threading;
 using System.Windows;
 using System.Xml;
 using ComPDFKit.NativeMethod;
@@ -16,6 +18,8 @@ namespace FormViewControl
         {
             base.OnStartup(e);
             LicenseVerify();
+            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
+            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
         }
 
         private static bool LicenseVerify()
@@ -24,7 +28,7 @@ namespace FormViewControl
                 return false;
 
             LicenseErrorCode verifyResult = CPDFSDKVerifier.LicenseVerify("license_key_windows.txt", true);
-            return (verifyResult != LicenseErrorCode.E_LICENSE_SUCCESS);
+            return (verifyResult == LicenseErrorCode.E_LICENSE_SUCCESS);
         }
     }
 }

+ 6 - 2
Demo/Examples/Forms/Forms.csproj

@@ -104,10 +104,14 @@
     </ProjectReference>
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\license_key_windows.txt">
+    <None Include="..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
+    <Content Include="..\TestFile\ComPDFKit_Forms_Sample_File.pdf">
+      <Link>ComPDFKit_Forms_Sample_File.pdf</Link>
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
     <Content Include="..\TestFile\PDF32000_2008.pdf">
       <Link>PDF32000_2008.pdf</Link>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>

+ 1 - 1
Demo/Examples/Forms/MainWindow.xaml.cs

@@ -98,7 +98,7 @@ namespace FormViewControl
 
         private void LoadDefaultDocument()
         {
-            string defaultFilePath = "PDF32000_2008.pdf";
+            string defaultFilePath = "ComPDFKit_Forms_Sample_File.pdf";
             pdfViewer.PDFView.InitDocument(defaultFilePath);
             LoadDocument();
         }

+ 1 - 1
Demo/Examples/PDFViewer/App.xaml.cs

@@ -58,7 +58,7 @@ namespace PDFViewer
                 return false;
 
             LicenseErrorCode verifyResult = CPDFSDKVerifier.LicenseVerify("license_key_windows.txt", true);
-            return (verifyResult != LicenseErrorCode.E_LICENSE_SUCCESS);
+            return (verifyResult == LicenseErrorCode.E_LICENSE_SUCCESS);
         }
         
         private void HistoryFile(string item)

+ 2 - 2
Demo/Examples/Samples/AnnotationImportExportTest/CS/AnnotationImportExportTest.csproj

@@ -125,10 +125,10 @@
     </BootstrapperPackage>
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/AnnotationImportExportTest/VB/AnnotationImportExportTest.vbproj

@@ -131,10 +131,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/AnnotationTest/VB/AnnotationTest.vbproj

@@ -140,10 +140,10 @@
     </None>
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
   <Import Project="..\..\..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets" Condition="Exists('..\..\..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets')" />

+ 2 - 2
Demo/Examples/Samples/BackgroundTest/CS/BackgroundTest.csproj

@@ -112,10 +112,10 @@
     </BootstrapperPackage>
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/BackgroundTest/VB/BackgroundTest.vbproj

@@ -136,10 +136,10 @@
       <Link>logo.png</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </None>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/BatesTest/CS/BatesTest.csproj

@@ -72,10 +72,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/BatesTest/VB/BatesTest.vbproj

@@ -127,10 +127,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
   <Import Project="..\..\..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets" Condition="Exists('..\..\..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets')" />

+ 2 - 2
Demo/Examples/Samples/BookmarkTest/CS/BookmarkTest.csproj

@@ -76,10 +76,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 3 - 3
Demo/Examples/Samples/BookmarkTest/VB/BookmarkTest.vbproj

@@ -8,7 +8,7 @@
     <OutputType>Exe</OutputType>
     <StartupObject>VB.BookmarkTest</StartupObject>
     <RootNamespace>VB</RootNamespace>
-    <AssemblyName>VB</AssemblyName>
+    <AssemblyName>Samples_ComPDFKit</AssemblyName>
     <FileAlignment>512</FileAlignment>
     <MyType>Console</MyType>
     <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
@@ -127,10 +127,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
   <Import Project="..\..\..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets" Condition="Exists('..\..\..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets')" />

+ 2 - 2
Demo/Examples/Samples/DigitalSignatureTest/CS/DigitalSignatureTest.csproj

@@ -83,10 +83,10 @@
     </None>
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/DigitalSignatureTest/VB/DigitalSignatureTest.vbproj

@@ -131,10 +131,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
     <None Include="Logo.png">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

+ 2 - 2
Demo/Examples/Samples/DocumentCompare/CS/DocumentCompareTest.csproj

@@ -87,10 +87,10 @@
     </None>
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/DocumentCompare/VB/DocumentCompareTest.vbproj

@@ -140,10 +140,10 @@
     </None>
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/DocumentInfoTest/CS/DocumentInfoTest.csproj

@@ -99,10 +99,10 @@
     </BootstrapperPackage>
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/DocumentInfoTest/VB/DocumentInfoTest.vbproj

@@ -125,10 +125,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/EncryptTest/CS/EncryptTest.csproj

@@ -76,10 +76,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/EncryptTest/VB/EncryptTest.vbproj

@@ -129,10 +129,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/FlattenTest/CS/FlattenTest.csproj

@@ -72,10 +72,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/FlattenTest/VB/FlattenTest.vbproj

@@ -124,10 +124,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/HeaderFooterTest/CS/HeaderFooterTest.csproj

@@ -69,10 +69,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/HeaderFooterTest/VB/HeaderFooterTest.vbproj

@@ -122,10 +122,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/ImageExtractTest/CS/ImageExtractTest.csproj

@@ -75,10 +75,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/ImageExtractTest/VB/ImageExtractTest.vbproj

@@ -125,10 +125,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/InteractiveFormsTest/CS/InteractiveFormsTest.csproj

@@ -73,10 +73,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/InteractiveFormsTest/VB/InteractiveFormsTest.vbproj

@@ -124,10 +124,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 1 - 1
Demo/Examples/Samples/LicenseKey.cs

@@ -11,6 +11,6 @@ public static class SDKLicenseHelper
             return false;
 
         LicenseErrorCode verifyResult = CPDFSDKVerifier.LicenseVerify("license_key_windows.txt", true);
-        return (verifyResult != LicenseErrorCode.E_LICENSE_SUCCESS);
+        return (verifyResult == LicenseErrorCode.E_LICENSE_SUCCESS);
     }
 }

+ 2 - 2
Demo/Examples/Samples/OutlineTest/CS/OutlineTest.csproj

@@ -72,10 +72,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/OutlineTest/VB/OutlineTest.vbproj

@@ -124,10 +124,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/PDFATest/CS/PDFATest.csproj

@@ -72,10 +72,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/PDFATest/VB/PDFATest.vbproj

@@ -124,10 +124,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/PDFPageTest/CS/PDFPageTest.csproj

@@ -76,10 +76,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/PDFPageTest/VB/PDFPageTest.vbproj

@@ -128,10 +128,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/PDFRedactTest/CS/PDFRedactTest.csproj

@@ -71,10 +71,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/PDFRedactTest/VB/PDFRedactTest.vbproj

@@ -125,10 +125,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/PDFToImage/CS/PDFToImageTest.csproj

@@ -74,10 +74,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/PDFToImage/VB/PDFToImageTest.vbproj

@@ -127,10 +127,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/TextExtractTest/CS/TextExtractTest.csproj

@@ -72,10 +72,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 2 - 2
Demo/Examples/Samples/TextExtractTest/VB/TextExtractTest.vbproj

@@ -124,10 +124,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/TextSearchTest/VB/TextSearchTest.vbproj

@@ -126,10 +126,10 @@
     <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 2 - 2
Demo/Examples/Samples/WatermarkTest/VB/WatermarkTest.vbproj

@@ -135,10 +135,10 @@
       <Link>logo.png</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </None>
-    <Resource Include="..\..\..\license_key_windows.txt">
+    <None Include="..\..\..\license_key_windows.txt">
       <Link>license_key_windows.txt</Link>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Resource>
+    </None>
     <Content Include="ComPDFKit_Logo.ico" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

+ 6 - 2
Demo/Examples/Viewer/App.xaml.cs

@@ -1,7 +1,9 @@
-using ComPDFKit.NativeMethod;
+using System.Globalization;
+using ComPDFKit.NativeMethod;
 using Compdfkit_Tools.Helper;
 using System.IO;
 using System.Reflection;
+using System.Threading;
 using System.Windows;
 using System.Xml;
 using static ComPDFKit.NativeMethod.CPDFSDKVerifier;
@@ -19,6 +21,8 @@ namespace Viewer
             string str = this.GetType().Assembly.Location;
             base.OnStartup(e);
             LicenseVerify();
+            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
+            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
         }
 
         private static bool LicenseVerify()
@@ -27,7 +31,7 @@ namespace Viewer
                 return false;
 
             LicenseErrorCode verifyResult = CPDFSDKVerifier.LicenseVerify("license_key_windows.txt", true);
-            return (verifyResult != LicenseErrorCode.E_LICENSE_SUCCESS);
+            return (verifyResult == LicenseErrorCode.E_LICENSE_SUCCESS);
         }
     }
 }

+ 1 - 1
Demo/Examples/Viewer/MainWindow.xaml.cs

@@ -99,7 +99,7 @@ namespace Viewer
 
         private void LoadDefaultDocument()
         {
-            string defaultFilePath = "PDF32000_2008.pdf";
+            string defaultFilePath = "ComPDFKit_Sample_File_Windows.pdf";
             pdfViewControl = new PDFViewControl();
             pdfViewControl.PDFView.InitDocument(defaultFilePath);
             LoadDocument();

+ 6 - 0
Demo/Examples/Viewer/Viewer.csproj

@@ -132,6 +132,12 @@
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </None>
   </ItemGroup>
+  <ItemGroup>
+    <Content Include="..\TestFile\ComPDFKit_Sample_File_Windows.pdf">
+      <Link>ComPDFKit_Sample_File_Windows.pdf</Link>
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <Import Project="..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets" Condition="Exists('..\packages\ComPDFKit.NetFramework.1.10.0\build\ComPDFKit.NetFramework.targets')" />
   <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">