getPageBox

abstract fun getPageBox(@IntRange(from = 0) pageIndex: Int, @NonNull box: PdfBox): RectF

Returns rectangle describing one of the PDF page boxes. If the page box dimension is not present in the PDF document, it's considered to be as large as the actual page size from getPageSize.

Return

Rectangle describing the page box in PDF coordinates.

Parameters

pageIndex

Page number of the page to render, zero indexed.

box

Box to retrieve for the page, from PdfBox.