Platforms
Frameworks
Languages
Platform Specifics
File format support
Welcome to Apryse. .NET for the Apryse SDK is supported on Windows.
This guide will help you run Apryse samples and integrate a free trial of the Apryse SDK into .NET Framework applications on Windows. Your free trial includes unlimited trial usage and support from solution engineers.
.NET Desktop Development
and .NET Framework 4.5.1+ development tools
workload is part of your installation.This guide will use Visual Studio 2017.Download the SDK
A commercial license key is required for use in a production environment. Please contact sales to purchase a commercial key or if you need any other license key assistance.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).
This article uses PDFNET_BASE
as the path into the folder that you extracted.
Navigate to the location of extracted contents. Find and enter the Samples
folder (PDFNET_BASE/Samples
). Here you can find sample code for a large number of features supported by the Apryse SDK.
Samples_20XX.sln
in Visual Studio. Choose an appropriate version for your Visual Studio installation.This is called the "Apryse Hello World" application. It is easy to integrate the rest of Apryse SDK if you are able to open, save and close a PDFDoc.
Visual C#
or Visual Basic
category.C:/Users/User_Name/source/repos/myApp
Copy the Lib
folder from PDFNET_BASE
to your project folder (the folder which contains your .csproj
or .vbproj
file).Browse...
at the bottom of the dialog. Navigate to the copied Lib
folder and add PDFNetLoader.dll
to the references.Also add the appropriate version of PDFNet.dll
from the x86 folder as another reference (path/to/your/project/folder/Lib/PDFNet/x86/PDFNet.dll
). This version will allow the application to run on both 32-bit and 64-bit OS.PDFNet.dll
and set its Copy Local property to False.Replace the contents of Program.cs
or Module1.vb
with:
Build and run the project using the Start
button in Visual Studio.
You should find the "linearized_output.pdf" in your project folder with a blank page.
The steps above allow you to create an application that can support both 32bit or 64bit processes at runtime. However, this is often not needed in practice.
If you know you are targeting only 64bit, or 32bit, then reference the corresponding 32bit or 64bit PDFNet.dll assembly in your solution (make sure copylocal:true
is set), and remove both PDFNetLoader.dll and the one line of code for PDFNetLoader.
If on the other hand you are writing a client application, where you need to support both 64bit and 32bit, then simply using your installer to install the correct 32bit or 64bit PDFNet.dll, and omit PDFNetLoader.dll, is typically the best way to proceed.
In summary, PDFNetLoader.dll is not required, and is just used for AnyCPU 32bit/64bit handling. To know more about PDFNetLoader see [this post])https://www.pdftron.com/blog/dotnet/dotnet-pdf-control-nuget).
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales