PageSelection
public final 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.
Summary
Public constructors |
|---|
PageSelection( |
Public methods |
|
|---|---|
final int |
getPage(): The page number of the selection. |
final @NonNull List<@NonNull PdfPageContent> |
: list of segments of selected content. |
final @NonNull SelectionBoundary |
getStart(): Boundary where the selection starts. |
final @NonNull SelectionBoundary |
getStop(): Boundary where the selection stops. |
Public constructors
PageSelection
public PageSelection(
int page,
@NonNull SelectionBoundary start,
@NonNull SelectionBoundary stop,
@NonNull List<@NonNull PdfPageContent> selectedContents
)
| Parameters | |
|---|---|
int page |
: The page number of the selection. |
@NonNull SelectionBoundary start |
: Boundary where the selection starts. |
@NonNull SelectionBoundary stop |
: Boundary where the selection stops. |
@NonNull List<@NonNull PdfPageContent> selectedContents |
: list of segments of selected content. |
Public methods
getSelectedContents
public final @NonNull List<@NonNull PdfPageContent> getSelectedContents()
: list of segments of selected content.
getStart
public final @NonNull SelectionBoundary getStart()
: Boundary where the selection starts.
getStop
public final @NonNull SelectionBoundary getStop()
: Boundary where the selection stops.