How to Make a Windows Program in C# with ComPDF Conversion SDK
Create a New Windows Project
Fire up Visual Studio 2017, choose File -> New -> Project..., and then select Visual C# -> Windows Desktop -> Console App(.NET Framework) as shown in Figure 2-1.
Figure 2-1Choose the options for your new project as shown in Figure 2-2. Please make sure to choose .NET Framework 4.6.1 as the programming framework.
Figure 2-2Place the project to the location as desired. Then, click OK.
Add ComPDF Conversion SDK Package
Copy all files in the "lib" folder to the project folder.
Add ComPDF Conversion SDK dynamic library to References. In order to use ComPDF Conversion SDK APIs in the project, you must add the reference to the project first.
- In Solution Explorer, right-click the project and click Add -> Reference…

- In the Add Reference dialog, click the Browse tab, navigate to the project folder, select "cpdfconversionsdk_dotnet.dll" dynamic library, and then click OK.

- Add ComPDF Conversion SDK library to the project. Add the "x64" and "x86" folder into the project. Please make sure to set the property Copy to Output Directory of "cpdfconversionsdk.dll" and "opencv_world4100.dll" to Copy if newer. Otherwise, you should copy it to the same folder with the executable file manually before running the project.
