Skip to main content

Referencing the Assembly and Deployment

Version: 10.0

Referencing the Assembly and Deployment

The easiest way to reference and deploy DynamicPDF Core Suite in your project is by installing the NuGet package from directly within Visual Studio's Package Manager. Alternatively, you can follow the instructions here to reference and deploy the assembly manually.

Referencing From NuGet​

To install the NuGet Package, install it directly within Visual Studio's Package Manager.

Installing Manually​

The downloaded ZIP file will contain four assemblies, one for each of the following .NET Frameworks and one for .NET Standard 2.0.

Make sure the appropriate DynamicPDF DLL is referenced and deployed with your application based on the Target Platform. Also review what versions of each platform are supported in the Supported Platforms topic.

AssemblyPlatform
DynamicPDF.NETFramework20.dll.NET Framework 2.0
DynamicPDF.NETFramework35.dll.NET Framework 3.5
DynamicPDF.NETFramework40.dll.NET Framework 4.x
DynamicPDF.NETStandard20.dllAll platforms supported by .NET Standard 2.0. Refer - https://docs.microsoft.com/en-us/dotnet/standard/net-standard

Referencing the Assembly​

To reference our assembly from Visual Studio, open your project's references window (right click on the project's References and select "Add Reference..."). From the Add Reference window click on the "Browse" tab and browse to the bin folder in the extracted content and select the appropriate DLL based on the platform target of the project (see above table).

NuGet​

Our library can also be used from NuGet: ceTe.DynamicPDF.CoreSuite.NET.

License Key​

In additional to deploying the DLL files with your application, a license key must be added to remove the watermark. A license key will be added as a line of code in the application. License keys can be retrieved from the Customer Area of our website, https://www.dynamicpdf.com/CustomerArea, after the purchase of an appropriate serial number.

Character Shaping & HtmlArea Considerations​

Character Shaping or Complex Text Layout (CTL) is a writing system that selects the required shape of a character based on that character's position within a word and its surrounding characters. Character Shaping is supported in DynamicPDF when using a font or converting HTML that uses a font that supports CTL (Arabic, Thai, Devanagari for example). If Character Shaping and/or HtmlArea are being used, additional files may need to be deployed and additional deployment considerations will potentially need to be taken depending on the target deployment platform.

AssemblyPlatformNative Files
DynamicPDF.NETFramework20.dll.NET Framework 2.0Windows\DPDFNative_XXX.dll
DynamicPDF.NETFramework35.dll.NET Framework 3.5Windows\DPDFNative_XXX.dll
DynamicPDF.NETFramework40.dll.NET Framework 4.xWindows\DPDFNative_XXX.dll
DynamicPDF.NETStandard20.dll.NET Framework 4.x / .NET Core (Windows) / Mono (Windows)Windows\DPDFNative_XXX.dll
DynamicPDF.NETStandard20.dllUWPUWP\DPDFNative_XXX.dll
DynamicPDF.NETStandard20.dll.NET Core (Linux) / Mono (Linux)Linux\libDPDFNative_XXX.so
DynamicPDF.NETStandard20.dllXamarin.AndroidAndroid\libs\XXXX folder
DynamicPDF.NETStandard20.dllXamarin.iOSiOS\libDPDFNative.a

.NET Framework, .NET Core (Windows) / Mono (Windows) Deployment with Character Shaping and/or HtmlArea​

For .NET framework and .NET Core projects using Character Shaping, the native file(s) DPDFNative_XXX.dll (there is one for x86 and x64) must be deployed along with the DynamicPDF.NETFrameworkXX.dll. These files are located in the "bin\Native\Windows" folder in the downloaded zip file.

For .NET Framework projects using DynamicPDF.NETStandard20.dll, the native file DPDFNative_XXX.dll (there is one for x86, x64 and ARM) must be deployed along with the DynamicPDF.NETStandard20.dll. These files are located in the "bin\Native\Windows" folder in the downloaded zip file.

.NET Core (Linux) / Mono (Linux) Deployment with Character Shaping and/or HtmlArea​

For Mono projects targeting Linux and using Character Shaping, the native file libDPDFNative_XXX.so must be added to the project and must be deployed along with the DynamicPDF.NETStandard20.dll. The DPDFNative.XXX.so file is located in the "bin\Native\Linux" folder in the downloaded zip file.

Currently only x64 process architecture library was provided. Libraries for x86 will be available on request.

UWP Deployment with Character Shaping and/or HtmlArea​

For UWP projects using Character Shaping, the native file DPDFNative_XXX.dll (there is one for x86, x64 and ARM) must be added to the project and the "Build Action" property set to "Content" and must be deployed along with the DynamicPDF.NETStandard20.dll. These files are located in the "bin\Native\UWP" folder in the downloaded zip file.

Xamarin.iOS Deployment with Character Shaping and/or HtmlArea​

For Xamarin.iOS projects using Character Shaping, the native file libDPDFNative.a needs to be added as a static library under native reference folder and the "Force Load" and "Is C++" property set to true. The libDPDFNative.a file is located in the "bin\Native\iOS" folder in the downloaded zip file.

Xamarin.Android Deployment with Character Shaping and/or HtmlArea​

For Xamarin.Android projects using Character Shaping, the native files folder ("\libs") that is located under "bin\Native\Android" has to be copied to the projects folder and setting the individual ".so" files "Build Action" property set to "EmbeddedNativeLibrary". If the project is not targeting a particular architecture then the relevant ".so" file and its containing folder can be removed.