There are 2 ways to install SelectPdf library:
Using a NuGet package (.NET Framework and .NET Core)
Downloading assemblies (.NET Framework only)
The easiest way to install SelectPdf is by using a Nuget Package. Create your project, go to Nuget Package Manager and install one of the following packages:
.NET Framework version - AnyCPU - Select.Pdf: https://www.nuget.org/packages/Select.Pdf/.
.NET Framework version - x64 optimized version - Select.Pdf.x64: https://www.nuget.org/packages/Select.Pdf.x64/.
.NET Core version - Windows only - Select.Pdf.NetCore: https://www.nuget.org/packages/Select.Pdf.NetCore/.
Note 1: If the x64 version is used, the application needs to target x64 platform and it needs to run in an x64 worker process.
Note 2: The .NET Core version is for .NET Core 2.0 or above through .NET Standard 2.0. Currently it requires a Windows system to run. It does not work on Linux or Mac or Xamarin.
SelectPdf can be downloaded from the product site: https://selectpdf.com. The free trial product archive download page is this one: https://selectpdf.com/downloads/. SelectPdf is shipped as a product archive with the following structure:
Contains the assemblies and related files needed by SelectPdf Library for .NET.
Select.Pdf Library is shipped with different versions for CLR 2.0 (.NET 2.0, 3.5) and for CLR 4.0 (.NET 4.0 and above).
Note: Only the .NET Framework version of SelectPdf can be installed this way. The .NET Core version can be installed using Nuget Packages only, as it has additional dependencies that are specified in the package for automatic download.
Contains the product documentation in CHM format.
Contains C# and VB.NET samples that show how to use most of the features the library provides.
To use SelectPdf in a .NET project, a reference needs to be added to Select.Pdf.dll. Two additional files are also required: Select.Html.dep used by the html to pdf converter and Select.Tools.dep used by the pdf to text and pdf to image converter. These files need to be copied into the bin folder of the application, next to Select.Pdf.dll. Alternatively, the path to Select.Html.dep can be specified using the HtmlEngineFullPath property of the GlobalProperties class. The path to Select.Tools.dep can be specified using the PdfToolsFullPath property of the GlobalProperties class.
Important: If any of the properties HtmlEngineFullPath or PdfToolsFullPath of the GlobalProperties class is used, do not forget to include the full file name (Select.Html.dep or Select.Tools.dep) with it.
If SelectPdf needs to be installed into GAC, the only dll that has to to be added to GAC is Select.Pdf.dll. The related files (Select.Html.dep and Select.Tools.dep) will be automatically copied to GAC as linked resources, so no additional action is needed for them.