Some test text!

Loading...
Guides
Add a license key

Add license key

It is important that you initialize PDFTron library with a valid license key before using any PDFTron classes.

Please be sure to initialize PDFTron SDK before any calls to PDFTron APIs.

In Xamarin.Android

In your MainActivity.cs file's OnCreate method (before SetContentView), add:

pdftron.PDFNet.Initialize(this, Resource.Raw.pdfnet, "Insert commercial license key here after purchase");

or if you only installed PDFTron.Android.Tools package, you can instead use:

pdftron.PDF.Tools.Utils.AppUtils.InitializePDFNetApplication(this, "Insert commercial license key here after purchase");

or if you also installed PDFTron.Android.Demo package, you can instead use:

pdftron.Demo.Utils.AppUtils.InitializePDFNetApplication(this, "Insert commercial license key here after purchase");

And you are set to go! Now time to show a PDF .

In Xamarin.iOS

pdftron.PDFNet.Initialize("Insert commercial license key here after purchase");

And you are set to go! Now time to show a PDF .

Get the answers you need: Support