Back to Blog

    Developer Blog

    Setup C# and Visual Studio for use with the DLL edition of Foxit Quick PDF Library

    Foxit Quick PDF Library

    This tutorial shows you how to get ready to create your first PDF application with C#, Visual Studio and the DLL edition of Foxit Quick PDF Library.

    C# can be used with the ActiveX and DLL editions of Foxit Quick PDF Library instructions for setting up the DLL edition in Visual Studio can be found below. There are also instructions for setting up the ActiveX edition.

    1. Install the DLL Edition

    Included with the single DLL file DebenuPDFLibraryDLL[contentblock id=1 img=gcb.png].dll are various header/import files. They provide an easier way to interface with Foxit Quick PDF Library. These can be found in the Debenu > PDF Library > DLL > Import folder.

    2. Copy the DLL and header/import file

    Copy the DebenuPDFLibraryDLL[contentblock id=1 img=gcb.png].dll file to a folder of your choosing or leave it in the default installation folder:

    • C:\Program Files\Debenu\PDF Library\DLL

    Also, copy the DebenuPDFLibraryDLL[contentblock id=1 img=gcb.png].cs file to a folder of your choosing or leave it in the default installation folder:

    • C:\Program Files\Debenu\PDF Library\DLL\Import\CSharp\DebenuPDFLibraryDLL[contentblock id=1 img=gcb.png].cs

    3. Create a new C# project in Visual Studio

    Create a new Windows Forms Application Microsoft Visual Studio and give it a name of your choosing.

    • File > New > Project > Visual C# > Windows > Windows Forms Application

    4. Add the C# header/import file to the project

    The C# header/import file makes it easier to access the DLL edition of Foxit Quick PDF Library and saves you from having to manually setup each function from the DLL that you wish to use. Follow these simple steps to add the header/import file:

    • In Visual Studio click on the Project > Add Existing Item menu item
    • Find and select DebenuPDFLibraryDLL[contentblock id=1 img=gcb.png].cs. Refer to step 2 for guidance
    • Click OK and this existing item will be added to your project

    5. Add a namespace for Foxit Quick PDF Library

    You will need to add a namespace for Foxit Quick PDF Library which references the header/import file. The namespace is DebenuPDFLibraryDLL[contentblock id=1 img=gcb.png]. It should look like this:

    • using DebenuPDFLibraryDLL[contentblock id=1 img=gcb.png];

    6. Ready!

    You’re now setup and ready to move on to the fun part – creating your first PDF application with Foxit Quick PDF Library and C#.

    Watch C#, Visual Studio and DLL Edition Video Tutorial

    This article refers to a deprecated product. If you are looking for support for Foxit PDF SDK, please click here.