public class

SimpleReaderActivity

extends DocumentActivity
java.lang.Object
   ↳ AppCompatActivity
     ↳ com.pdftron.pdf.controls.DocumentActivity
       ↳ com.pdftron.demo.app.SimpleReaderActivity

Class Overview

SimpleReaderActivity is derived from DocumentActivity. and is an all-in-one document reader and PDF editor. UI can be configured via class.

Summary

[Expand]
Inherited Constants
From class com.pdftron.pdf.controls.DocumentActivity
[Expand]
Inherited Fields
From class com.pdftron.pdf.controls.DocumentActivity
Public Constructors
SimpleReaderActivity()
Public Methods
static void open(Context packageContext, ViewerConfig config, boolean newUi)
static void open(Context packageContext, ViewerConfig config)
Opens a built-in sample document with custom configuration.
static void open(Context packageContext)
Opens a built-in sample document with default configuration.
static void openDocument(Context packageContext, Uri fileUri)
Opens a file from Uri with empty password and default configuration.
static void openDocument(Context packageContext, Uri fileUri, ViewerConfig config)
Opens a file from Uri with empty password and custom configuration.
static void openDocument(Context packageContext, Uri fileUri, String password, ViewerConfig config, boolean newUi)
static void openDocument(Context packageContext, int resId)
Opens a file from resource id with empty password and default configuration.
static void openDocument(Context packageContext, Uri fileUri, String password, ViewerConfig config)
Opens a file from Uri with password and custom configuration.
static void openDocument(Context packageContext, int resId, String password, ViewerConfig config)
Opens a file from resource id with password and custom configuration.
static void openDocument(Context packageContext, int resId, String password)
Opens a file from resource id with password and default configuration.
static void openDocument(Context packageContext, int resId, ViewerConfig config)
Opens a file from resource id with empty password and custom configuration.
static void openDocument(Context packageContext, Uri fileUri, String password)
Opens a file from Uri with password and default configuration.
[Expand]
Inherited Methods
From class com.pdftron.pdf.controls.DocumentActivity
From class java.lang.Object
From interface com.pdftron.pdf.controls.PdfViewCtrlTabHostBaseFragment.TabHostListener

Public Constructors

public SimpleReaderActivity ()

Public Methods

public static void open (Context packageContext, ViewerConfig config, boolean newUi)

public static void open (Context packageContext, ViewerConfig config)

Opens a built-in sample document with custom configuration.

Parameters
packageContext the context
config the ViewerConfig

public static void open (Context packageContext)

Opens a built-in sample document with default configuration.

Parameters
packageContext the context

public static void openDocument (Context packageContext, Uri fileUri)

Opens a file from Uri with empty password and default configuration.

Parameters
packageContext the context
fileUri the file Uri

public static void openDocument (Context packageContext, Uri fileUri, ViewerConfig config)

Opens a file from Uri with empty password and custom configuration.

Parameters
packageContext the context
fileUri the file Uri
config the configuration

public static void openDocument (Context packageContext, Uri fileUri, String password, ViewerConfig config, boolean newUi)

public static void openDocument (Context packageContext, int resId)

Opens a file from resource id with empty password and default configuration.

Parameters
packageContext the context
resId the resource id

public static void openDocument (Context packageContext, Uri fileUri, String password, ViewerConfig config)

Opens a file from Uri with password and custom configuration.

Parameters
packageContext the context
fileUri the file Uri
password the password
config the configuration

public static void openDocument (Context packageContext, int resId, String password, ViewerConfig config)

Opens a file from resource id with password and custom configuration.

Parameters
packageContext the context
resId the resource id
password the password
config the configuration

public static void openDocument (Context packageContext, int resId, String password)

Opens a file from resource id with password and default configuration.

Parameters
packageContext the context
resId the resource id
password the password

public static void openDocument (Context packageContext, int resId, ViewerConfig config)

Opens a file from resource id with empty password and custom configuration.

Parameters
packageContext the context
resId the resource id
config the configuration

public static void openDocument (Context packageContext, Uri fileUri, String password)

Opens a file from Uri with password and default configuration.

Parameters
packageContext the context
fileUri the file Uri
password the password