Some test text!

Loading...
Guides
How do I use the standard version of PDFTron Android?

How do I use the standard version of PDFTron Android?

The standard version has lighter set of features to reduce the size of the APK. You can find out more about the differences between the two versions here .

Integrating standard version of PDFTron using Gradle

  1. First integrate the PDFTron libraries are described in this guide .

  2. Open the build.gradle file in your app module's directory and edit it to add a dependency for the standard version of PDFTron:

dependencies {
    // ...
-   implementation "com.pdftron:pdftron:9.1.0"
+   implementation "com.pdftron:pdftron-standard:9.1.0"
    implementation "com.pdftron:tools:9.1.0"

    implementation 'androidx.multidex:multidex:2.0.1'
}

Integrating standard version of PDFTron using AAR

  1. First integrate the PDFTron libraries are described in this guide .

  2. Instead of copying pdftron.aar from /lib/full/pdftron.aar, copy it from /lib/standard/pdftron.aar.

Update ViewerConfig

To use the standard version together with DocumentActivity or PdfViewCtrlTabHostFragment2, change the ViewerConfig:

ViewerConfig config = new ViewerConfig.Builder()
    .useStandardLibrary(true)
    .build();

Get the answers you need: Support