You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+45-8Lines changed: 45 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,7 @@
1
1
# Introduction
2
2
[ComPDFKit PDF SDK](https://www.compdf.com) is a robust PDF library, which offers comprehensive functions for quickly viewing, annotating, editing, and signing PDFs. It is feature-rich and battle-tested, making PDF files process and manipulation easier and faster.
3
3
4
-
[ComPDFKit PDF SDK for Windows](https://www.compdf.com/windows) offers powerful [.Net APIs](https://github.com/ComPDFKit/compdfkit-api-.net), allowing you to quickly add PDF functions to any Windows application and ensure seamless and efficient development.
5
-
6
-
[ComPDFKit API](https://api.compdf.com/api/pricing) allows you to get 1000 files processing monthly now! Just [sign up](https://api.compdf.com/signup) for a free trial and enjoy comprehensive PDF functions.
4
+
[ComPDFKit for Windows](https://www.compdf.com/windows) allows you to quickly add PDF functions to any Windows application, elevating your Window programs to ensure efficient development. It is available at [nuget](https://www.nuget.org/packages/ComPDFKit.NetFramework) and [github.com](https://github.com/ComPDFKit/compdfkit-pdf-sdk-windows).
7
5
8
6
# Related
9
7
@@ -28,7 +26,7 @@ It is easy to embed ComPDFKit PDF SDK in your Windows application with a few lin
28
26
29
27
In this guide, we take ***"PDFViewer"*** as an example to show how to run it in Visual Studio 2022.
30
28
31
-
1. Copy your ***"license_key_windows.txt"*** to the ***"Examples"*** folder (The file is the license to make your project run).
29
+
1. Copy your ***"license_key_windows.xml"*** to the ***"Examples"*** folder (The file is the license to make your project run).
32
30
33
31
2. Find ***"Examples.sln"*** in the ***"Examples"*** folder and open it in Visual Studio 2022.
34
32
@@ -127,20 +125,59 @@ Rather than targeting a package held at Nuget, you may set up a configuration to
127
125
128
126
### Apply the License Key
129
127
130
-
You can [contact ComPDFKit team](https://www.compdf.com/contact-us) to get a trial license. Before using any ComPDFKit PDF SDK classes, a required operation is to set the license key. Add the following method - `LicenseVerify()` to ***"MainWindow.xaml.cs"***.
128
+
You can [contact the ComPDFKit team](https://www.compdf.com/contact-us) to obtain a trial license. Before using any classes from the ComPDFKit PDF SDK, you need to choose the corresponding scheme from the following two options based on the license type and apply the license to your application.
129
+
130
+
**Online Authentication**
131
+
132
+
You can perform online authentication using the following approach:
131
133
132
134
```c#
133
-
boolLicenseVerify()
135
+
publicstaticasyncTask<bool>LicenseVerify()
134
136
{
135
137
if (!CPDFSDKVerifier.LoadNativeLibrary())
138
+
{
136
139
returnfalse;
140
+
}
141
+
LicenseErrorCodestatus=awaitCPDFSDKVerifier.OnlineLicenseVerify("Input your license here.");
Additionally, if you need to confirm the communication status with the server during online authentication, you can implement the `CPDFSDKVerifier.LicenseRefreshed` callback:
0 commit comments