Some test text!

keyboard_arrow_down

Get started

keyboard_arrow_down

Xamarin.Forms

keyboard_arrow_down

Fundamentals

keyboard_arrow_down

Document Viewer

keyboard_arrow_down

Document Viewer components

keyboard_arrow_down

Annotation and collaboration

keyboard_arrow_down

Advanced customization

keyboard_arrow_down

Conversion

keyboard_arrow_down

Parsing and extraction

keyboard_arrow_down

Digital signatures

keyboard_arrow_down

Form filling

keyboard_arrow_down

Search

keyboard_arrow_down

Redaction

keyboard_arrow_down

Advanced topics

keyboard_arrow_down

Reference

keyboard_arrow_down

PDF Processing API

Permissions

In this document
chevron_rightAdd permissions
This tutorial only applies to Xamarin.Android.

Some features in the PDFTron Android SDK require certain Android permissions, the most prominent one being storage permission for acessing documents stored locally on the device. A summary of the feature and its required permission is shown below. If you need any of the specified features listed below, you will need to add the appropriate Android permissions.

FeatureRelevant permission
Accessing documents in local storage, including:
  • Reading documents in local storage
  • Writing to PDF files (including annotation creation) in local storage
  • Creating PDF files in local storage
android.permission.WRITE_EXTERNAL_STORAGE
  • Opening a PDF from a URL
  • HTML to PDF conversion
  • Realtime collaboration
android.permission.INTERNET
  • Creating sound annotations
android.permission.RECORD_AUDIO

linkAdd permissions

You can add permissions to your Android app by including the uses-permission tag for the specified permission in your AndroidManifest.xml file. You can learn more about Android permissions in the Android documentation.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.pdftron.myapplication"
    ...>

    <!-- Permissions are added in the manifest tag -->
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />

    ...
</manifest>