EmbeddedFile

interface EmbeddedFile

Represents file embedded in FileAnnotation or com.pspdfkit.document.PdfDocument.

Functions

Link copied to clipboard
Returns FileAnnotation to which this file is attached to.
Link copied to clipboard
abstract fun getFileData(): Array<Byte>
Reads whole file and returns its data.
Link copied to clipboard
Returns file description.
Link copied to clipboard
abstract fun getFileName(): String
Returns name of the file.
Link copied to clipboard
abstract fun getFileSize(): Long
Returns file size.
Link copied to clipboard
abstract fun getId(): String
Returns identifier of this embedded file.
Link copied to clipboard
Returns file modification date.
Link copied to clipboard
abstract fun writeToStream(@NonNull outputStream: OutputStream)
Writes the complete contents of this file to the specified output stream.
Link copied to clipboard
abstract fun writeToStreamAsync(@NonNull outputStream: OutputStream): Completable
Writes the complete contents of this file to the specified output stream, asynchronously.