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(
    int page,
    @NonNull SelectionBoundary start,
    @NonNull SelectionBoundary stop,
    @NonNull List<@NonNull PdfPageContent> selectedContents
)

Public methods

final int

: The page number of the selection.

final @NonNull List<@NonNull PdfPageContent>

: list of segments of selected content.

final @NonNull SelectionBoundary

: Boundary where the selection starts.

final @NonNull SelectionBoundary

: 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

getPage

Added in 1.0.0-alpha11
public final int getPage()

: The page number of the selection.

getSelectedContents

Added in 1.0.0-alpha11
public final @NonNull List<@NonNull PdfPageContentgetSelectedContents()

: list of segments of selected content.

getStart

Added in 1.0.0-alpha11
public final @NonNull SelectionBoundary getStart()

: Boundary where the selection starts.

getStop

Added in 1.0.0-alpha11
public final @NonNull SelectionBoundary getStop()

: Boundary where the selection stops.