PdfDocument

Represents a PDF document.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class OutlineNode(val title: String?, val pageNumber: Int?, val children: List<PdfDocument.OutlineNode>)

Properties

Link copied to clipboard
open val author: String?

The name of the person who created the document.

Link copied to clipboard
open val identifier: String?

Permanent identifier based on the contents of the file at the time it was originally created.

Link copied to clipboard
open val keywords: List<String>

Keywords associated with the document.

Link copied to clipboard

Outline to build the table of contents.

Link copied to clipboard
abstract val pageCount: Int

Number of pages in the document.

Link copied to clipboard

Default reading progression of the document.

Link copied to clipboard
open val subject: String?

The subject of the document.

Link copied to clipboard
open val title: String?

The document's title.

Functions

Link copied to clipboard
abstract fun close()

Closes this object and releases any resources associated with it. If the object is already closed then invoking this method has no effect.

Link copied to clipboard
open suspend fun cover(context: Context): Bitmap?

The first page rendered as a cover.