PageSelection


class PageSelection


Represents the list of selected content on a particular page of the PDF document. By default, the selection boundary is represented from left to right. Note: Currently supports text selection only.

Summary

Public constructors

PageSelection(
    page: Int,
    start: SelectionBoundary,
    stop: SelectionBoundary,
    selectedTextContents: List<PdfPageTextContent>
)

Public properties

Int

: The page number of the selection.

List<PdfPageTextContent>

: list of segments of selected text content.

SelectionBoundary

: Boundary where the selection starts.

SelectionBoundary

: Boundary where the selection stops.

Public constructors

PageSelection

Added in 1.0.0-alpha10
PageSelection(
    page: Int,
    start: SelectionBoundary,
    stop: SelectionBoundary,
    selectedTextContents: List<PdfPageTextContent>
)
Parameters
page: Int

: The page number of the selection.

start: SelectionBoundary

: Boundary where the selection starts.

stop: SelectionBoundary

: Boundary where the selection stops.

selectedTextContents: List<PdfPageTextContent>

: list of segments of selected text content.

Public properties

page

Added in 1.0.0-alpha10
val pageInt

: The page number of the selection.

selectedTextContents

Added in 1.0.0-alpha10
val selectedTextContentsList<PdfPageTextContent>

: list of segments of selected text content.

start

Added in 1.0.0-alpha10
val startSelectionBoundary

: Boundary where the selection starts.

stop

Added in 1.0.0-alpha10
val stopSelectionBoundary

: Boundary where the selection stops.