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. Note: Currently supports text selection only.

Summary

Public constructors

PageSelection(
    int page,
    @NonNull SelectionBoundary start,
    @NonNull SelectionBoundary stop,
    @NonNull List<@NonNull PdfPageTextContent> selectedTextContents
)

Public methods

final int

: The page number of the selection.

final @NonNull List<@NonNull PdfPageTextContent>

: list of segments of selected text content.

final @NonNull SelectionBoundary

: Boundary where the selection starts.

final @NonNull SelectionBoundary

: Boundary where the selection stops.

Public constructors

PageSelection

Added in 1.0.0-alpha10
public PageSelection(
    int page,
    @NonNull SelectionBoundary start,
    @NonNull SelectionBoundary stop,
    @NonNull List<@NonNull PdfPageTextContent> selectedTextContents
)
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 PdfPageTextContent> selectedTextContents

: list of segments of selected text content.

Public methods

getPage

Added in 1.0.0-alpha10
public final int getPage()

: The page number of the selection.

getSelectedTextContents

Added in 1.0.0-alpha10
public final @NonNull List<@NonNull PdfPageTextContentgetSelectedTextContents()

: list of segments of selected text content.

getStart

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

: Boundary where the selection starts.

getStop

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

: Boundary where the selection stops.