Some test text!

menu

Step 1: Integrate PDFTron SDK for Xamarin.Android

Welcome to PDFTron. This guide will show you how to integrate a free trial of the PDFTron Xamarin SDK into your Xamarin.Android application. You can either integrate the PDFTron packages automatically through the Nuget manager, or install them manually by downloading the SDK. Pick whichever option you prefer, but integrating with Nuget is the recommended approach. Your free trial includes unlimited trial usage and support from solution engineers.

Manual integration

linkPrerequisites

  • Minimum: API 16 (Using Android Support Libraries)
  • Recommended target: API 29
  • Latest version of Visual Studio
No trial license key required.
The trial of PDFTron SDK works without a license key. A commercial license key is required for use in a production environment. Please fill out our licensing form if you do not have a valid license key.
Keep your commercial license key confidential.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).

First, download the SDK:

linkDownload

linkIntegrate

If you do not already have an existing application, create a new Visual Studio Xamarin.Android project with Single View App.

  1. Open the NuGet package manager console:

NuGet console

  1. Install the PDFTron package:

    Install-Package path_to_package\PDFTron.Android.7.1.4.nupkg
    Install-Package path_to_package\PDFTron.Android.Tools.7.1.4.nupkg
    Replace path_to_package with the actual path. The required packages should be in lib/android
    Please note all of the required dependencies will also be installed.
  2. To use SimpleReaderActivity and/or AdvancedReaderActivity, also install:

    Install-Package path_to_package\PDFTron.Android.Demo.7.1.4.nupkg
    Replace path_to_package with the actual path. The required packages should be in lib/android
  3. Lastly, turn on Multi-Dex:

    Multi-Dex

linkNext step

View a documentAdd a PDFTron license key

linkSDK overview

PDFTron for Xamarin contains the following key files and folders:

File/Folder NameDescription
CommonFolder containing PDFTron Xamarin source code
custom (Xamarin.iOS package only)Folder containing helper project to build PDFNetHelper.framework
libFolder containing the PDFTron NuGet packages and the source files to the binding projects
projectSrcFolder containing Visual Studio solution files for PDFTron Xamarin source code
samplesFolder containing the sample projects CompleteReader, PDFViewCtrl UI and MiscellaneousSamples
legal.txtLegal and copyright information
LicenseLink to PDFTron Software License agreement

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.