Integrating PDFTron via NuGet

In this document
chevron_rightIn Xamarin.Android
chevron_rightIn Xamarin.iOS

Visual Studio 2017 and/or Visual Studio for Mac is required.

PDFTron SDK for Xamarin can be installed through NuGet package manager.

linkIn Xamarin.Android

Supporting Sdk versions:

  • Minimum: API 16 (Using Android Support Libraries)
  • Recommended target: API 27

To integrate PDFTron libraries into one of your own projects, here are a few simple steps to prepare your Visual Studio project.

First, open the NuGet package manager by right click on your project, and click Manage NuGet Packages.... Then in Browse tab, search for PDFTron.

Install:

Please note all its dependencies will be installed, including the PDFTron.Android package.

To use SimpleReaderActivity shown in the CompleteReader sample project, also install:

Lastly, turn on Multi-Dex:

And you are set to go! Now time to add PDFTron license key to your application and open a document in an Activity or open a document with PDFViewCtrl.

linkIn Xamarin.iOS

To integrate PDFTron libraries into one of your own projects, here are a few simple steps to prepare your Visual Studio project.

Open the NuGet package manager by right click on Packages > Add Packages...:

Search for PDFTron.

Install:

Please note all its dependencies will be installed, including the PDFTron.iOS package.

And you are set to go! Now time to add PDFTron license key to your application and open a document with PDFViewCtrl.