The Apryse library is automatically initialized if you have added a valid license key to your project's AndroidManifest.xml
file. Alternatively, you can add the key by manually calling the static initialization methods. Before moving forward, please make sure you have added the Apryse libraries to your project.
The trial of Apryse Mobile SDK does not require a trial key. 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).
gradle.properties
file in the root folder of your project and add your license key:build.gradle
file (usually located at app/build.gradle
) add:AndroidManifest.xml
file, inside the <application>
tag:This tag will inject a build variable containing your license key into the manifest file.Next try opening a document in an activity.It's also possible to disable auto-initialization altogether by adding the following to the <application>
tag in your project's AndroidManifest.xml
file:
Depending on the package you are using, you will need to call different initialization methods. In your main application's or main activity's onCreate method (and before setContentView
in your activity) call one of the following:
com.pdftron:tools
dependency (i.e. using implementation "com.pdftron:tools:11.0.0"
in your app/build.gradle
file):com.pdftron:tools
) call:Please note that if you use PDFNet.initialize
, you will have to set up the Apryse library manually (for more information see the Apryse class documentation).Next try opening a document in an activity.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales