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 DebenuPDFLibraryDLL1312.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 DebenuPDFLibraryDLL1312.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 DebenuPDFLibraryDLL1312.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\DebenuPDFLibraryDLL1312.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 DebenuPDFLibraryDLL1312.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 DebenuPDFLibraryDLL1312. It should look like this:
- using DebenuPDFLibraryDLL1312;
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#.