Version 11
Version 10
Version 9
Version 8
Version 7
Version 6
Version 1
Apryse's Android SDK ships with DocumentActivity
, an all-in-one document reader and PDF editor. In addition to PDF files, it also supports viewing other file formats such as .docx
, .doc
, .pptx
, .xlsx
, .md
, .cbz
and various image formats. In this activity you can also read, annotate, sign, fill in PDF forms and more.
DocumentActivity
extends Android's AppCompatActivity
and follows Material design guidelines.
PDFTron.Android.Tools
NuGet package into 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).
DocumentActivity
, we will need to add the Android permissions listed in this table. However if you would like to disable certain features and customize your document viewer, you should leave out unnecessary permissions.Please note that from Android 6.0 (API 23) and up, applications need to request storage permission at runtime before accessing any files on device.
largeHeap
:AndroidManifest.xml
file, and also declare DocumentActivity
in the manifest file. The final AndroidManifest.xml
file should look something like this:Launch DocumentActivity
by specifiying a local file path, an HTTP/HTTPS url, or a Content Uri:
PDFTronAppTheme
in res/values/styles.xml
:You can learn more about this in the customize the viewer's theme guide .DocumentActivity
uses the AppCompat
theme for material colors. Make sure that the value of android:theme
in your activity
tag also extends the AppCompat
theme.
DocumentActivity
, you can use ViewerConfig.Builder
. For example:For details on customizing the UI and using ViewerConfig.Builder
, check out the configuration tutorial .Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales