DocumentSource

constructor(@NonNull fileUri: Uri)

Creates a new DocumentSource with file Uri as a source.

Parameters

fileUri

Uri of the PDF file.


constructor(@NonNull fileUri: Uri, @Nullable password: String)

Creates a new DocumentSource with file Uri as a source.

Parameters

fileUri

Uri of the PDF file.

password

Password to unlock the file. Can be null if no password is required.


constructor(@NonNull fileUri: Uri, @Nullable password: String, @Nullable contentSignature: String)

Creates a new DocumentSource with file Uri as a source.

Parameters

fileUri

Uri of the PDF file.

password

Password to unlock the file. Can be null if no password is required.

contentSignature

An RSA encrypted SHA256 hash of the document if required by license, may be null.


constructor(@NonNull dataProvider: DataProvider)

Creates a new DocumentSource with a DataProvider as a source.

Parameters

dataProvider

DataProvider for accessing the document to open.


constructor(@NonNull dataProvider: DataProvider, @Nullable password: String)

Creates a new DocumentSource with a DataProvider as a source.

Parameters

dataProvider

DataProvider for accessing the document to open.

password

Password to unlock the PDF. Can be null if no password is required.


constructor(@NonNull dataProvider: DataProvider, @Nullable password: String, @Nullable contentSignature: String)

Creates a new DocumentSource with a DataProvider as a source.

Parameters

dataProvider

DataProvider for accessing the document to open.

password

Password to unlock the PDF. Can be null if no password is required.

contentSignature

An RSA encrypted SHA256 hash of the document if required by license, may be null.


constructor(@Nullable fileUri: Uri, @Nullable dataProvider: DataProvider, @Nullable password: String, @Nullable contentSignature: String)
constructor(@Nullable fileUri: Uri, @Nullable dataProvider: DataProvider, @Nullable password: String, @Nullable contentSignature: String, @Nullable checkpointFile: File, checkpointAlreadyCreated: Boolean)

Creates a new DocumentSource with file Uri as a source.


constructor(@NonNull documentSource: DocumentSource, @NonNull checkpoint: File, checkpointAlreadyCreated: Boolean)

Creates a new DocumentSource with a File as a checkpoint source.