PdfDocument.PageInfo


public final class PdfDocument.PageInfo


Represents information about a single page in the PDF document.

Summary

Public constructors

PageInfo(
    int pageNum,
    int height,
    int width,
    @NonNull List<@NonNull FormWidgetInfo> formWidgetInfos
)

Public methods

final @NonNull List<@NonNull FormWidgetInfo>

(Optional) A list of FormWidgetInfo objects representing the form widgets present on the given pageNum.

final int

The height of the page in points.

final int

The page number (0-based).

final int

The width of the page in points.

Public constructors

PageInfo

Added in 1.0.0-alpha13
public PageInfo(
    int pageNum,
    int height,
    int width,
    @NonNull List<@NonNull FormWidgetInfo> formWidgetInfos
)

Public methods

getFormWidgetInfos

Added in 1.0.0-alpha13
public final @NonNull List<@NonNull FormWidgetInfogetFormWidgetInfos()

(Optional) A list of FormWidgetInfo objects representing the form widgets present on the given pageNum. This property is only populated if PdfDocument.INCLUDE_PAGE_FORM_WIDGET_INFO is set in the 'pageInfoFlags' passed to PdfDocument.getPageInfo. It will be empty if FormWidgetInfo is not requested or if there are no form widgets present on the page.

getHeight

Added in 1.0.0-alpha13
public final int getHeight()

The height of the page in points.

getPageNum

Added in 1.0.0-alpha13
public final int getPageNum()

The page number (0-based).

getWidth

Added in 1.0.0-alpha13
public final int getWidth()

The width of the page in points.