Selection


public interface Selection

Known direct subclasses
ImageSelection

Represents a specific image object selected from a PDF document.

LinkSelection

Represents a link within a PDF document that has been selected.

TextSelection

Represents text content that has been selected.


Represents PDF content that has been selected.

Summary

Public methods

abstract @NonNull List<@NonNull PdfRect>

The PdfRect bounds of this selection.

Public methods

getBounds

Added in 1.0.0-beta01
abstract @NonNull List<@NonNull PdfRect> getBounds()

The PdfRect bounds of this selection. May contain multiple PdfRect if this selection spans multiple discrete areas within the PDF. Consider for example any selection spanning multiple pages, or a text selection spanning multiple lines on the same page.