Some test text!
Android / Guides
Platform
Documentation
This guide will help you integrate a free trial of the Apryse Native Plugin for Android applications using Cordova. Your free trial includes unlimited trial usage and support from solution engineers.
Note: There are other approaches that can be used to integrate Apryse technology with Cordova. Please see this FAQ page to find out more about the relative strengths of each approach.
If you don't already have a Cordova codebase, start one. If you do, then make sure Android is added as a platform and skip to integration.
Create a new Cordova project called pdfhello
cordova create pdfhello com.example.pdf pdfhello
cd pdfhello
Add Android as a platform to build the Cordova application for.
cordova platform add android
Add the pdftron-cordova
plugin in your project directory.
cordova plugin add https://github.com:Apryse/pdftron-cordova.git
Navigate to pdfhello/platforms/android
and add the following line in the gradle.properties file
:
PDFTRON_LICENSE_KEY=INSERT_COMMERCIAL_LICENSE_KEY_HERE_AFTER_PURCHASE
Key can be left empty for a trial
Navigate to pdfhello/platforms/android/app/main/
and open AndroidManifest.xml
with your favorite text editor.
Change the activity theme to CustomAppTheme
:
-<activity android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar">
+<activity android:name="MainActivity" android:theme="@style/CustomAppTheme">
Navigate to pdfhello/platforms/android/app/main/com/example/pdf/
and open MainActivity.java
with your favorite text editor. Change the base class for the main activity from CordovaActivity
to CordovaAppCompatActivity
:
-public class MainActivity extends CordovaActivity {
+public class MainActivity extends CordovaAppCompatActivity {
Get the answers you need: Support