Added in API level 19

PageInfo


class PageInfo
kotlin.Any
   ↳ android.graphics.pdf.PdfDocument.PageInfo

This class represents meta-data that describes a PDF Page.

Summary

Nested classes

Builder for creating a PageInfo.

Public methods
Rect!

Get the content rectangle in PostScript points (1/72th of an inch).

Int

Gets the page height in PostScript points (1/72th of an inch).

Int

Gets the page number.

Int

Gets the page width in PostScript points (1/72th of an inch).

Public methods

getContentRect

Added in API level 19
fun getContentRect(): Rect!

Get the content rectangle in PostScript points (1/72th of an inch). This is the area that contains the page content and is relative to the page top left.

Return
Rect! The content rectangle.

getPageHeight

Added in API level 19
fun getPageHeight(): Int

Gets the page height in PostScript points (1/72th of an inch).

Return
Int The page height.

getPageNumber

Added in API level 19
fun getPageNumber(): Int

Gets the page number.

Return
Int The page number.

getPageWidth

Added in API level 19
fun getPageWidth(): Int

Gets the page width in PostScript points (1/72th of an inch).

Return
Int The page width.