Some test text!

Search
Hamburger Icon

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

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.

    New Project. Steps 1-3

  4. 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.

  5. 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:

    PDFNET_BASE\Headers

    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.

    Additional_Include

  6. Now navigate to the Linker Menu below C/C++. In the Input settings, find the Additional Dependencies and replace the entry with:

    PDFNET_BASE\Lib\PDFNetC.lib;%(AdditionalDependencies)

    Additional Dependencies

    Note: For Steps 5 & 6, remember to replace PDFNET_BASE with the copied path on your clipboard.

  7. Go back to your explorer and navigate to this directory:

    PDFNET_BASE\Lib\

    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:

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

    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.

Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales