Manually integrating PDFTron

In this document
chevron_rightIn Xamarin.Android
chevron_rightIn Xamarin.iOS
A demo license key or a commercial license key is required to proceed. If you have not yet received a license key, please obtain a license key here before continuing to read this documentation.

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

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

linkIn Xamarin.Android

Supporting Sdk versions:

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

First, open the NuGet package manager console:

Install PDFTron package:

Install-Package path_to_package\PDFTron.Android.Tools.6.8.6.nupkg

Replace path_to_package to the actual path.

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

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

Install-Package path_to_package\PDFTron.Android.Demo.6.8.6.nupkg

Replace path_to_package to the actual path.

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

First, add new NuGet source to where PDFTron for Xamarin.iOS download package's lib/ios folder is as described in Adding Package Sources.

Then, in Add Packages window, switch the source to the newly added source, you will see the packages:

Select PDFTron.iOS.Tools and click Add Package.

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.