How to set up dependencies with Visual Studio and Apryse SDK?

If you are new to the Visual Studio development environment, follow along with these steps to set the dependencies for your project with Apryse SDK Correctly. In such a case it is recommended to use Visual Studio 2017 or 2019.

  1. Open a new instance of Visual Studio. Go to the File menu and create a new project File > New > Project...You can also open the New Project dialog using Ctrl + Shift + N.
  2. Click on Visual C++ in the left navigation bar and Select Windows Console Application.
  3. Set a name for the console application. This guide will call it myapp. Click on OK. This should generate a default console project and open a .cpp file for you in Visual Studio.
Apryse Docs Image
  1. Find the Solution Explorer to the right of the screen and right click on your project's name. At the bottom of the list, click on the Properties option. This will open a dialog that will allow you to define important variables to compile your project with PDFNet classes and methods.
  2. In the Configuration properties in the left panel, expand the C/C++ menu. In General settings, find the Additional Include Directories field. Add the following path:You can open a dialog to do the same by clicking on the Edit... option from the drop down for this field.Click on Apply.

sh

1PDFNET_BASE\Headers
Apryse Docs Image
  1. Now navigate to the Linker Menu below C/C++. In the Input settings, find the Additional Dependencies and replace the entry with:Note: For Steps 5 & 6, remember to replace PDFNET_BASE with the copied path on your clipboard.

sh

1PDFNET_BASE\Lib\PDFNetC.lib;%(AdditionalDependencies)
Apryse Docs Image
  1. Go back to your explorer and navigate to this directory:Copy the PDFNetC.dll file. Now find the output folder of the project and paste it there.By default, the path to your output folder will look similar to this:Remember to replace User_Name with the name of the current user.Alternatively, you can find your project by searching by its name in the Windows Search Bar.

sh

1PDFNET_BASE\Lib\

sh

1C:\Users\User_Name\source\repos\myapp\myapp

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales